Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

Question How is life insurance used in a DBO plan?

Answered: 1 week ago