Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.7k views
in Object Oriented Programming with C++ by (49.1k points)
closed by

Explain the different types of inheritance.

1 Answer

+1 vote
by (54.8k points)
selected by
 
Best answer

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.

6. Hence, it may be a combination of Multilevel and Multiple inheritance or Hierarchical and Multilevel inheritance or Hierarchical, Multilevel and Multiple inheritance.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...