Design the class doctortype


In this exercise, you will design various classes and write a programto computerize the billing system of a hospital.

Design the class doctorType, inherited from the class personType with an additional data member to store a doctor's speciality. Add appropriate constructors and member functions to initialize, access, and manipulate the data members.
Design the class billType with data members to store a patient's ID and a patient's hospital charges, such as pharmacy charges for medicine, doctor's fees, and room charges. Add appropriate constructors and member function to initialize and access and manipulate the data members.
Deign the class patientType, inherited from the class personType, defined in Chapter 11, with additional data members to store a patient's ID, age, date of birth, attending physician's name, the date when the patient was discharged from the hospital. (Use theclass dateType to store the date of birth, admit date, discharge date, and the classdoctorType to store the attending physician's name.) Add appropriate constructors and member functions to initialize, access and manipulate the data members.
Write a program to test your classes.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Design the class doctortype
Reference No:- TGS081040

Expected delivery within 24 Hours