6.A program to illustrate how a multiple inheritance can be declared and defined in a program. This program consists of two base classes and one derived class. The base class basic_info contains the...





6.A program to illustrate how a multiple inheritance can be declared and defined in a program. This program consists of two base classes and one derived class. The base class basic_info contains the data members: name, roll number and sex. Another base class academic_fit contains the data members: course, semester and rank. The derived class financial_assit contains the data member amount besides the data members of the base classes. The derived class has been declared as public inheritance. The member functions are used to get information of the derived class from the keyboard and display the contents of class objects on the screen.


The OMT of a class notation for multiple inheritance is given in Fig. 12.7.


















Fig. 12.7 OMT of a Class Notation for Multiple Inheritance










May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here