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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question

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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning