Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The language is C++ and the class studentType: should go into a header file. Derive a Student class from the Person class with the following
The language is C++ and the class studentType: should go into a header file.
Derive a Student class from the Person class with the following additional attributes string id; string classification; double gpa; As always, you are going to have to create constructors/setters/getters/print for the these attributes class studentType: public personTypef public: //constructors studentType); fName, 1Name// studentType(string, string); // fName, 1Name, GPA, classification, id // studentType(string, string, double, string, string); //setters void setGPA (double); void setID(string); void setClassification(string); //getters double getGPA() string getID); string getClassification ; //overridden methods void print) ; //override the parents' print method bool equals (studentType); private: string id; //added every id 'should' be unique double gpa; string classification; Create 5 people: 3 students and 2 person (base class). Print all 5 "people". upload the .cpp and screenshot (s)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