Question: Implement a base class Person. Derive classes Patient and Doctor from Person. A person has a first Name, last Name, and email. Patient has additional
Implement a base class Person. Derive classes Patient and Doctor from Person. A person has a first Name, last Name, and email. Patient has additional data members patient Id and condition. Doctor has additional data member specialization. Write the class definitions, the constructors, and the member functions for all classes. Write a program that tests your Patient and Doctor classes. Your code should be thoroughly commented so that all lines of code have a comment that explains it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
