Problem

Consider the following definition of the class student.public studentType: public personTy...

Consider the following definition of the class student.

public studentType: public personType{public:void print ( );void calculateGPA ( );void setID (long id);void setCourses(const string c[ ], int noOfC);void setGrades (const char cG[ ], int noOfC);void getID ( );void getCourses(string c[ ], int noOfC);void getGrades(char cG[ ], int noOfC);void studentType(string fName = " ", string lastName = " ", long id, string c[ ] = NULL, char cG[ ] = NULL, int noOfC =0);private:long studentId;string courses[6];char coursesGrade[6] int noOfCourses;}

Rewrite the definition of the class student so that the functions print and calculateGPA are pure virtual functions.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT