Answer to Question #267422 in Programming & Computer Science for kayjay

Question #267422

Draw a UML class diagram

Design the class Doctor, inherited from the class Person, with an additional data member to store a doctor’s specialty. Add appropriate constructors and methods to initialize, access, and manipulate the data members.


 Design the class Bill with data members to store a patient’s ID and the patient’s hospital charges such as pharmacy charges for medicine, the doctor’s fee, and the room charges. Add appropriate constructors and methods to initialize, access, and manipulate the data members.


Design class Patient, inherited from the class Person, with additional data members to store a patient’s ID, age, date of birth, attendingphysician’s name, the datewhenthepatientwas admittedin the hospital, and the date when the patient was discharged from the hospital. (Use the class Date to store the date of birth, admit date, discharge date, and the class Doctor to store the attending physician’s name.) Add appropriate constructorsandmethodsto initialize, access,andmanipulate the data members



1
Expert's answer
2021-11-17T12:03:13-0500

The answer to your question is provided in the image:

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS