SUMMARY
- We cannot specify a base class more than once in a derived class.
- An inheritance scheme (type) where there is only one base class and only one derived class can be termed as single inheritance.
- When a class inherits properties from two different classes, such inheritance is called multiple inheritance.
- When a class is derived from some class, which in turn is derived from another class, such inheritance may be called as multilevel inheritance.
- An inheritance scheme (type) where there is one base class and many derived classes is termed as hierarchical inheritance.
- Hybrid inheritance is a combination of multiple inheritance and multilevel inheritance. A class is derived from two classes as in multiple inheritance. However, one of the ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.