Home | | Computer Science 11th std | Types of Inheritance

Computer Science - Types of Inheritance | 11th Computer Science : Chapter 16 : Inheritance

Chapter: 11th Computer Science : Chapter 16 : Inheritance

Types of Inheritance

There are different types of inheritance viz., Single Inheritance, Multiple inheritance, Multilevel inheritance, hybrid inheritance and hierarchical inheritance.

Types of Inheritance

 

There are different types of inheritance viz., Single Inheritance, Multiple inheritance, Multilevel inheritance, hybrid inheritance and hierarchical inheritance.

 

1. Single Inheritance

When a derived class inherits only from one base class, it is known as single inheritance

 

2. Multiple Inheritance

When a derived class inherits from multiple base classes it is known as multiple inheritance

 

3. Hierarchical inheritance

When more than one derived classes are created from a single base class , it is known as Hierarchical inheritance.

 

4. Multilevel Inheritance

The transitive nature of inheritance is itself reflected by this form of inheritance. When a class is derived from a class which is a derived class – then it is referred to as multilevel inheritance.

 

5. Hybrid inheritance

When there is a combination of more than one type of inheritance, it is known as hybrid inheritance. Hence, it may be a combination of Multilevel and Multiple inheritance or Hierarchical and Multilevel inheritance or Hierarchical, Multilevel and Multiple inheritance.

 

The following diagram represents the different types of inheritance



Tags : Computer Science , 11th Computer Science : Chapter 16 : Inheritance
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
11th Computer Science : Chapter 16 : Inheritance : Types of Inheritance | Computer Science


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.