why java does not supports the multiple inheritace?

Recommended Answers

All 2 Replies

You will have to ask the designers of the language because it was their conscious decision not to include. Most people assume it was to avoid the problems that C++ currently has with Diamond inheritance. P.S. Java does have multiple inheritance of Type (you can include as many interfaces as you wish), just not multiple inheritance of implementation (you can only directly extend one Class).

Ya There Is Problem Of multiple inheritance In Java Like Data Security And Ambiguity
So Only They Not Introduced The Concept Of multiple inheritance In Java but It Possible
In Java Through Interface ok

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.