Why java doesn't support multiple inheritance?thank you....
fardoonmuhafiz -11 Light Poster
Recommended Answers
Jump to Post— javaAddict 900Because that is how it was written. There is no why. Maybe you should rephrase your question
Jump to Post— BestJewSinceJC 700Yeah, obviously it is just how Java was written. But the reason for that was, in no small part, based on C++, where multiple inheritance can get very messy. I don't remember the issues very well (as I'm not a cpp programmer), but one issue is that naming of methods …
Jump to Post— BestJewSinceJC 700because of the ambiguities it can create when a class inherits from two superclasses with the same method signature: which version should be called?
Which is exactly what I thought the issue was, except I do not see how it is any different from implementing two interfaces with the same …
All 10 Replies
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
BestJewSinceJC 700 Posting Maven
fardoonmuhafiz -11 Light Poster
BestJewSinceJC 700 Posting Maven
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
fardoonmuhafiz -11 Light Poster
stultuske commented: it's not a "crap suggestion" at all -1
jwenting commented: insulting other members isn't going to make you friends. -2
verruckt24 438 Posting Shark
jwenting 1,905 duckman Team Colleague
fardoonmuhafiz -11 Light Poster
verruckt24 438 Posting Shark
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.