Inheritance Programs

Multiple inheritance program in c++

Multiple inheritance program

Multiple inheritance program in c++.A class that can inherit the attribute of two or more classes is known as multiple inheritance.

Multiple inheritance program

Here class scan3 is derived class which inherit the atributes of class scan1 and scan2.

Program

OUTPUT

Multiple inheritance program


Comment below if you are facing any problem.


Also read

C++ program of multilevel inheritance
C++ program to find greatest between three numbers using single inheritance
C++ program swap two numbers using single inheritance


Summary
Multiple inheritance program in c++
Article Name
Multiple inheritance program in c++
Description
A class that can inherit the attribute of two or more classes is known as multiple inheritance.
Author
Publisher Name
Scanfcode
Publisher Logo