4.
please help me get the correct code that runs correctly
4) Below is the class definition for PersonType, the base class. class PersonType/ public: PersonType(); //no-are 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 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 ● ● ● A no-argument (default) constructor that sets gradePointAverage to 0.0 and totalCredits to ●
4. please help me get the correct code that runs correctly
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am