Question: Generalize the Person-Student class hierarchy to include classes Faculty, Under graduate Student, Graduate Student, Professor, Instructor. Explain the inheritance structure of these classes, and derive
Generalize the Person-Student class hierarchy to include classes Faculty, Under graduate Student, Graduate Student, Professor, Instructor. Explain the inheritance structure of these classes, and derive some appropriate member variables for each class.
Step by Step Solution
3.40 Rating (159 Votes )
There are 3 Steps involved in it
include using namespace std class Person this is the base class private string name int idNumber public Personconst string n int ID namen idNumberID virtual void print cout Name name endl cout ID idNu... View full answer
Get step-by-step solutions from verified subject matter experts
