Skip to content
Albert edited this page Mar 31, 2021 · 22 revisions

Welcome to the Java_AppWeb_Spring_2021 wiki!

Clinica

The first step to creating our exercise. Just 5 classes:

  1. Clinica.java
  2. MainApplication.java
  3. MyDate.java
  4. Person.java
  5. Test.java

Test Class got two static methods to test: testObjects and testConstructorMethod

more on Clinica

Clinica1

Now we are going to add some complexity, so we will have got 10 classes. Two branches of inherence: student and employee, under employee we will be got two more classes: teacher and doctor.

Test got two more static methods to test: testObjectsStudent and testUtilitiesInherence and a new Utilities class with three new utilities: printList, printListExtended and printListExtendedClassicArray

  1. Clinica.java
  2. Course.java
  3. Employee.java
  4. MainApplication.java
  5. MyDate.java
  6. Person.java
  7. Student.java
  8. Teacher.java
  9. Test.java
  10. Utilities.java

more on Clinica1

Clinica2

Now we are studying an intro to teacher <> course <> student relationship many to many, we are developing more and more course and teacher classes. We have got 11 classes because we have added one more class: Doctor, so far we will not use Doctor class.

We add a new static method to test: testObjectsCourse

  1. Clinica.java
  2. Course.java
  3. Doctor.java
  4. Employee.java
  5. MainApplication.java
  6. MyDate.java
  7. Person.java
  8. Student.java
  9. Teacher.java
  10. Test.java
  11. Utilities.java

more on Clinica2

Clinica3

We finish this exercise refactoring (just a while and a menu) MainApp to resemble MVC and adding the last feature: test clinic.

We add a new static method to test: testClinicaMembersArray

  1. Clinica.java
  2. Course.java
  3. Doctor.java
  4. Employee.java
  5. MainApplication.java
  6. MyDate.java
  7. Person.java
  8. Student.java
  9. Teacher.java
  10. Test.java
  11. Utilities.java

more on Clinica3

Clone this wiki locally