Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential Data Protection For Estate Agencies In Singapore 2024

Authors: Yang Yen Thaw Yt

1st Edition

B0CQK79WD3, 979-8872095392

More Books

Students also viewed these Databases questions