Question: In java Person Class The Person class is the primary Domain class for the project. It stores the basic data for a person within the

In java

Person Class The Person class is the primary Domain class for the project. It stores the basic data for a person within the system. It utilized one other class as an attribute Date. It has the appropriate setters, getters and only one constructor.

Patient Class The Patient class inherits from the Person class as a specific type of person. It contains the unique data for patients who receive treatment. This is the most complicated of the classes; especially, since it uses an array of class Treatment. Each Patient, in this system, can have from 0 to 10 treatments. When creating the Treatment attribute array, you need to declare it to hold 10 elements. It has the appropriate setters, getters and one constructor. The tellAboutSelf method is used to output the attribute data in a formatted string for display.

tellAboutSelf Output Format:

Doctor Class The Doctor class inherits from the Person class as a specific type of person. It has the appropriate setters, getters and one constructor. The tellAboutSelf method is used to output the attribute data in a formatted string for display.

tellAboutSelf Output Format:

Treatment Class The Treatment class is for storing data about a Patients medical treatments. Treatments are associated with a Patient using the Treatment array in the Patient class. Each Patient can have up to 10 treatments. Treatment uses the Date and Patient classes.

In java Person Class The Person class is the primary Domain class

Medical Clinic Two Date Person -month: int -day: int -year int +Date () +Date (aDate: String) +isLeapYear (y: int) boolean +toString () String -firstN ame String astN ame String -dateOfBirth Date +Person (aFName String, aL Name String, aDate : String) +getFullName () String +getDOB () String +setDOB (aDate: String) Patient Doctor -employer String insuranceCompany : String -treatments: Treatment ] -treatmentCount int +Patient (aFName String, aLName String, aDate String, anEm ployer String, aninsurance Company String) +addTreatment aTreatment Treatment) +getAliTreatments (): String +setEmployer(aninsuranceCompany String) +getinuranceCompany ():String +te llAboutSe If (): String -dateEmployed: Date -spe cialty String +Doctor (aFName String, aLName String, DOB String, aDateEmployed String, aSpecialty: String) +set Date Employed (aDate: String) +getDateEmployed String +setSpecialty (aSpecialty: String) +getSpe cialty () :String +te llAboutSe lf () String Treatment -treatmentDate Date -startTime String -endTime String -aPerson Patient 0..10 +Treatment (aDate String, sTime String, eT ime: String, aPerson Patient) +getTreatmentDate):String +getStartTime (): String +getEndT ime () String

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!