INTERMIDIATE PROGRAMMING ASSIGNMENT
LAB: INHERITANCE AND POLYMORPHISIM
Goal
In this assignment students will practice inheritance and polymorphism in C++.
Objectives
Class Programming: Given an object-based entity with specific functionality, students should be able to create an equivalent C++ class to represent it.
Problem:
1. Add to class patientType the date when the patient was admitted in the hospital, and the date when the patient was discharged from the hospital (Use the class Dateclass you wrote in the prelab)to store admit date, discharge date. Modify constructors and add member functions to initialize access, and manipulate the new added data members.
2. In main(), create a vector of pointers to type TeamPerson. Fill it up with at least three objects. One of TeamPerson, one of doctorType and one of patientType.
3. Print all the data of the three objects of the vector. Make sure each object is printed according to its print function.
Attachment:- Lab.zip