Hi, I am John and pursuing graduate, my question is why Java or oops language does not use multiple inheritance? This is nightmare for me. My exam is coming soon. Please provide me a good answer
Recommended Answers
Jump to PostNot quite true any more. SInce the introduction of lambdas Java has "default methods" in interfaces, which are inherited by any class that implements the interface. And yes, because you can implement multiple interfaces, this leads to exactly the same diamond problem as multiple inheritance from classes. There are new …
All 4 Replies
JamesCherrill
4,577
Most Valuable Poster
Moderator
Featured Poster
rproffitt
commented:
That's what I thought. Then again they tagged the discussion with asp.net and left out Java version in use. I have a legacy app on (gasp) 1.8.
+15
anand9796
-3
Light Poster
Banned
JamesCherrill
4,577
Most Valuable Poster
Moderator
Featured Poster
Deep986
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.