4) Below is the class definition for PersonType, the base class. class PersonType public: PersonType(); //no-arg constru

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

4 Below Is The Class Definition For Persontype The Base Class Class Persontype Public Persontype No Arg Constru 1
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 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply