- 4 Below Is The Class Definition For Persontype The Base Class Class Persontype Public Persontype No Arg Constru 1 (57.19 KiB) Viewed 38 times
4) Below is the class definition for PersonType, the base class. class PersonType public: PersonType(); //no-arg constru
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
4) Below is the class definition for PersonType, the base class. class PersonType public: PersonType(); //no-arg constru
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