Domanda di colloquio di Philips

Why doesn't Java allow multiple inheritance?

Risposta di colloquio

Anonimo

18 giu 2024

Because of ambiguity in the member functions of the base class, to avoid it only allows multiple inheritance if the base classes are interfaces.