C++ – Multiple Inheritance – Virtual inheritance to overcome inheritance ambiguity
Another interesting feature of Object Oriented Programming is its inheritance. Inheritance inherits the behavior or attributes from its parent or base classes to the derived classes. C++ uses virtual inheritance to overcome the inheritance ambiguity in multiple inheritance. Multiple inheritance means, derived classes inherit from multiple base classes. Inheritance ambiguity will occur when a derived class […]