C++ code that 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.
Answers
Answered by
0
I didn't got it
I didn't got it
I didn't got it
Similar questions
Science,
3 months ago
English,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Science,
11 months ago