4) Below is the class definition for PersonType, the base class. class PersonType public: PersonType(); //no-arg constru
Posted: Fri Jul 08, 2022 7:28 am
4) Below is the class definition for PersonType, the base class. class PersonType public: PersonType(); //no-arg constructor PersonType(string); //constructor to set name void changeName(string); //changes name to value set by argument string getName(); string getDOB(); int getID(); protected: string name; string dob; //Date of birth int id; //ID number of person Please give the class definition for the derived class Student and define its functions and constructors as follows (16 pts): • Data fields for double variables gradePointAverage, totalCredits and string variable mailingAddress • A no-argument (default) constructor that sets gradePointAverage to 0.0 and totalCredits to • A constructor that sets gradePointAverage, totalCredits, and mailingAddress to a specified value • A get function to return mailingAddress. A get function to return gradePointAverage A get function to return totalCredits • A set function to reset the value of mailingAddress to a given value