1.A program to read the data members of a basic class such as name, roll number and sex from the keyboard and display the contents of the class on the screen. This program does not use any inheritance concepts.
2.A program to read the derived class data members such as name, roll number, sex, height and weight from the keyboard and display the contents of the class on the screen. This program demonstrates a single inheritance concept which consists of a base class and a derived class.
Fig. 12.2OMT of a Class Notation for Single Inheritance
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here