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
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