Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c++ Consider the following definition of the class studentType: public studentType: public personType { public: void print(); void calculateGPA(); void setID(long id); void setCourses(const

In c++

Consider the following definition of the class studentType:

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 studentType so that the functions print and calculateGPA are pure virtual functions.

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

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions

Question

dy dx Find the derivative of the function y=(4x+3)5(2x+1)2.

Answered: 1 week ago

Question

Draw and explain the operation of LVDT for pressure measurement

Answered: 1 week ago