why java does not support multiple inheritance????????????????
If it is to eliminate ambiguity,even interface also causes ambuiguity.....
Please answer this in details.....................................
Printable View
why java does not support multiple inheritance????????????????
If it is to eliminate ambiguity,even interface also causes ambuiguity.....
Please answer this in details.....................................
i cant state any definitive answer for you, but i got something around from google
Java Multiple Inheritance
As the reference to interfaces might have suggested, Java does have multiple inheritance: an object can inherit methods from a number of supertypes and behave polymorphically on those methods.
What the object does *not* get is implementation inherited from multiple superclasses. There is one direct superclass. It is with *implementation* being inherited from diverse ancestors that amibiguity arises.
I have no clue about the historical question of why particular people made the particular decisions they did. But you might want to read Gosling and McGilton's famous white paper introducing the language. In 3.3.7 Java Language Interfaces they motivate interfaces as a way of enhancing single inheritance of implementation.