What are the different types of inheritance?

What are the different types of Inheritance?

Single Inheritance : A (parent class) → B (child class)
Multiple Inheritance : A → C, B → C
Hierarchical Inheritance : A → B, A → C, A → D
Multilevel Inheritance : A → B, B → C
Hybrid Inheritance : A → B, A → C, B → D, C → D
What is a concrete derived class?
What is a concrete derived class? - The derived class that implements the missing functionality of an abstract class...
Explain why and when do we use protected instead of private
Explain why and when do we use protected instead of private - Private data members cannot be accessed outside the class. When a class inherits a base class....
What is a downcast? - C++
What is a downcast? - A downcast is a cast from a base class to a class derived from the base class...
Post your comment