Why Java allows multiple inheritance from interfaces, but not from abstract / concrete classes

Possible duplicate:
Why there is no multiple inheritance in Java, but multiple interfaces are allowed

Why Java allows multiple inheritance from interfaces, but not from abstract or concrete classes

+5
source share
4 answers

Multiple inheritance of specific classes raises many problems .

For example, what if a class inherits two different implementations of the same method from two different base classes?

, Java .
, .

.

+11

. , , , , . ( ).

, - , .

Java OO - .

+1

"" , .

Java .

, "" . "".

, , , . , , , , .

, , , , . , , ?

0

Make the language simpler and more elegant. C ++ allows a lot of things, but there is often pain to learn and use. We (I, at least :)) do not want java to be like that.

0
source

All Articles