Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this submission, you are going to submit the header file that declares the Student class as a derived class of the following Person class.
In this submission, you are going to submit the header file that declares the Student class as a derived class of the following Person class. _Specifically, make sure your Student class contains the following list of data members: A student's current status: freshman, sophomore, junior or senior A pointer-based dynamic array that stores a student's grades And the following list of function members (not intended to be a complete interface): A default constructor .The "Big-3" functions: if a function requires to include a parameter object, you are required to pass this object by reference A ready-only function to return a student's current status Any other function(s) that is (are) required by the C++ compiler I/File:Person.b #include #include using namespace std: class Personi public: virtual Person); //destructor: to release any memory that has been allocated to the object Person; I/default constructor: id-1, name-"NA", birthday-"1/1/2000" Person(const Person & someone); //copy constructor void operator (const Person &rbs); //assignment operator int get ido const: //retum the id of a Person object string get name) censt, /return the name of a Person object const string get bithdav const://return the birthday of a Person object string getEmail int const; /return the i-th email if exists; gw; return "NA" void set idint pew.id):l/change a person's id to new.id void set.namelstring new namel; I/ change a person's name to new.name
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started