B
B
BonBon Slick2020-01-15 21:15:56
PHP
BonBon Slick, 2020-01-15 21:15:56

Why is there no multiple inheritance?

Why is there really no MI support in each language from the tags?
My assumption is that they were too lazy to handle the entire overhead.
Diamond problem is an excuse, C ++ is there and everything is OK, somehow we live.
Some problematic bugs due to deep inheritances, the problem is the incompetence of the dev.
Uncle Bob agrees with me on this.
Your opinion?
Are there any public statements from language creators?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-01-15
@BonBonSlick

Java has been designed with some of the most common and complex problems that come up with C++ in the enterprise sector. And when developing C #, Java was taken into account.

E
egor_nullptr, 2020-01-15
@egor_nullptr

Java, C#, and PHP have interfaces, but C++ doesn't. And interfaces, in fact, are quite enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question