Answered step by step
Verified Expert Solution
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
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
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