Computer Science, asked by Hisana45, 1 year ago

Write a c++ program to implement hybrid inheritance.

Answers

Answered by InFocus
1
The inheritance in which the derivation of a class involves more than one form of any inheritance is called hybrid inheritance. Basically C++ hybrid inheritance is combination of two or more types of inheritance. It can also be called multi path inheritance.

Following block diagram highlights the concept of hybrid inheritance which involves single and multiple inheritance.

C++ Hybrid Inheritance Block Diagram


Above block diagram shows the hybrid combination of single inheritance and multiple inheritance. Hybrid inheritance is used in a situation where we need to apply more than one inheritance in a program.

As in other inheritance, based on the visibility mode used or access specifier used while deriving, the properties of the base class are derived. Access specifier can be private, protected or public.


Hisana45: Program??
Similar questions
Math, 6 months ago