Question: Please attach the Screenshot of a code and output? Consider the following definition of the classstudentType: publicstudentType: publicpersonType { public: voidprint(); voidcalculateGPA(); voidsetID(long id); voidsetCourses(const
Please attach the Screenshot of a code and output?
Consider the following definition of the classstudentType:
publicstudentType: publicpersonType { public: voidprint(); voidcalculateGPA(); voidsetID(long id); voidsetCourses(const stringc[], intnoOfC); voidsetGrades(const charcG[], intnoOfC);
voidgetID(); voidgetCourses(stringc[], intnoOfC); voidgetGrades(charcG[], intnoOfC); voidstudentType(stringfName= "", stringlastName= "", long id, stringc[] = NULL, charcG[] = NULL, intnoOfC= 0);
private: longstudentId; stringcourses[6]; charcoursesGrade[6] intnoOfCourses; )
Rewrite the definition of the classstudentTypeso that the functions print andcalculateGPAare purevirtualfunctions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
