Question: Define a class called student that has the following data members: - int student number - string student name - double student average The following
Define a class called student that has the following data members: - int student number - string student name - double student average
The following member functions: - Constructor that initialize the data members with default values. - set and get functions for each data member - Print function to print the values of data members.
Define a class called graduatestudent that inherits data members and functions from the class student, and then declare the following data members : - int level - int year
Member functions: - constructor -set and get functions for each data member - Print function.
Define a class called master that inherits data members and functions from graduatestudent class, and then declare the following data member: - int newid.
Member function: - constructor - set and get function for the data member - Print function.
Write a driver program that: - Declare object of type student with suitable values then print it - Declare object of type master with your information then print it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
