Question: In c++ define (specify the data members and member functions) an abstract base class Person that describes a person, with basic information like name, age,
In c++ define (specify the data members and member functions) an abstract base class Person that describes a person, with basic information like name, age, gender... Next, define a derived class Student that describes a student - has the basic Person class information, and adds year of graduation, student ID, major, list of classes ... then derive from the Student a class GradStudent for a typical graduate student - include an enumerated type defining the thesis option, e.g., MASTERS_THESIS, MASTERS_NON_THESIS, and DOCTORATE. Function implementations are not required just specify (define) the classes.
use a List
Function implementations are not required just specify (define) the classes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
