Frage im Vorstellungsgespräch bei Revature

Why doesn't java support multiple inheritance?

Antworten zu Vorstellungsgespräch

Anonym

16. Dez. 2017

Unsure why, but interfaces provide similar functionality.

Anonym

21. Feb. 2019

It's to avoid the " diamond problem." Say you have 4 classes {A, B, C, D} where B and C inherit from A, and class D inherits from both B and C. If there is a method in A that both B and C have overridden–and D does not override it–then what version of the method does D inherit?