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...





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.















The OMT of a class notation for single inheritance is given in Fig. 12.2.




Fig. 12.2
OMT of a Class Notation for Single Inheritance










May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here