Question: C++ Start with Student class: class Student { private: long ID: string Name, float GPA: }: Change your base class and derived class definitions to

 C++ Start with Student class: class Student { private: long ID:

C++ Start with Student class: class Student { private: long ID: string Name, float GPA: }: Change your base class and derived class definitions to include the default constructor and an initializing constructor. The parameterized constructors needs to initialize the private members of the respective class. The derived class constructor needs to accept the initializing values for the base class members as well. write destructor functions for all base and derived classes. The default constructor and destructor functions don't have to do anything yet. a) Create one object each of type Freshman and Junior. b) While creating the objects, call the parametrized derived class constructors and pass appropriate values. c) b) Call the derived class accessor function to get the value of name, id, gpa and respective scores. Create two derived classes Freshman and Junior from the Student class Accessor function to call getValue must be of void return type. Mutator function called setValue to access and change the score and prompt the user for the value for the score. A private variable called computerscience 101 to store SCORE A private variable called computerscience999 to store SCORE The base class has the same functions, so you'll have to call the base class function from the derived class function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!