Question: please assist with writing this code given the listed instructions 1. Design the class patient Type, inherited from class persontype, with additional data members to


1. Design the class patient Type, inherited from class persontype, with additional data members to store a patient's ID, age, date of birth, the date the patient was admitted in the hospital, and the date the patient was discharged. The data members must be private. 2. Add appropriate constructors and member functions to initialize, access and manipulate data members. 3. Code a test program that creates a new patient. Test the classes as follows: Create a patient Type object. Request the patient ID, First Name, Last Name Set the values in the object appropriately The date of birth, admission date and discharge dates may be set using hard-coded values or requested. Set these values for the patient Type object Print the patient Type object information: First Name, Last Name, Admission Date, Discharge Date, Date of birth Complete as much as you can before you leave ensuring what you've completed compiles. These labs are entirely for your practice. The program may be named any name of our choice and must have a .cpp extention; variables may be any name of your choice. You DO NOT have to comment these programs. 1 / Author: D.s. Malik // class person Type // This class specifies the members to implement a person's // first name and last name. //***** ****** #ifndef _personType #define H_personType #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
