Question: two .h files, and three .cpp files for this submission. Please create two classes: Doctor and Surgeon The Doctor class has member variables such as

two .h files, and three .cpp files for this submission.

Please create two classes: Doctor and Surgeon

The Doctor class has member variables such as the doctors name, number of years of practice, and location. Please make the member access modifier to the number of years of practice as protected. The Surgeon class may have additional member variables such as surgical specialty. You may add relevant member methods other than constructor(s), getters and setters, to each of the class if you will.

Please use the Doctor class as the base class, and the Surgeon class as the derived class (from Doctor class). The base access modifier should be public.

In the main() function, you must create an array of three Surgeon objects, and set and display related data of the three objects.

Extra Credits (1 points): Please use typedef to make the array as a new type called THREESURGEONS. Then create an instance of the THREESURGEONS, and set and display related data of the three objects.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!