What are the different types of Inheritance in C++?

Types of Inheritance:

1 .Single Inheritance: When a class derives from a single base class it is known as Single Inheritance.

2. Multiple Inheritance: Multiple inheritance is that in which one or more classes derive from more than one base class it is known as Multiple Inheritance.

3. Multilevel Inheritance:  It is that inheritance in which a class derives from a class which is a derived class already.

4. Hybrid Inheritance: Hybrid inheritance is a combination of two or more types of inheritance.

5. Hierarchical Inheritance: Hierarchical Inheritance is that inheritance in which there is a single Base class and multiple derived classes are derived from this Base class.

More Questions

Leave a Reply

Word Verfication * Time limit is exhausted. Please reload CAPTCHA.