Single vs Multiple Inheritance

Back to Inheritance

Single inheritance allows a class to inherit from only one superclass (Java, C#), creating a tree hierarchy. Multiple inheritance allows inheriting from several superclasses (C++, Python), creating a DAG but introducing the diamond problem where ambiguous method resolution can occur.

programming-paradigms oop inheritance