Diamond Problem

The confusion when a class inherits the same method through two parents.

What is Diamond Problem?

The diamond problem is the confusion when a class inherits from two classes that both inherit the same method from a shared parent: which version wins? It is why C# and Java allow only one base class.

Level: Master · More OOP terms at this level

Updated