Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
24 / 187
List the types of inheritance supported in C++.
Answer:
There are 5 forms available, namely
• Single inheritance: A derived class with only one base class
• Multiple inheritance: A derived class with only several base class
• Hierarchical inheritance: The traits one class may be inherited by more than one class
• Multilevel inheritance:
• Hybrid inheritance: it is a combination of multiple and hierarchical inheritance.
Asked In ::
Anand Maladhari
23 Feb, 2019 5:07 AM
There are 5 forms available, namely
• Single inheritance: A derived class with only one base class
• Multiple inheritance: A derived class with only several base class
• Hierarchical inheritance: The traits one class may be inherited by more than one class
• Multilevel inheritance:
• Hybrid inheritance: it is a combination of multiple and hierarchical inheritance.
• Single inheritance: A derived class with only one base class
• Multiple inheritance: A derived class with only several base class
• Hierarchical inheritance: The traits one class may be inherited by more than one class
• Multilevel inheritance:
• Hybrid inheritance: it is a combination of multiple and hierarchical inheritance.