# 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](https://www.ask-codey.com/glossary/subjects/oop/master)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/diamond-problem
