Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java Micro Edition and the fly likes Regarding Multiple inheritance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Regarding Multiple inheritance" Watch "Regarding Multiple inheritance" New topic
Author

Regarding Multiple inheritance

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144
hi,

I am new to java can you tell why java does not support multiple inheritance what is the drawback in multiple inheritance.



Thanking You.
Pushkar Choudhary
Rancher

Joined: May 21, 2006
Posts: 425

This question has been posted and answered on the web a million times. Please SearchFirst. This is one link explaining the same.
Srikanth Nalam
Greenhorn

Joined: Feb 23, 2010
Posts: 20
Hi Santosh,

I have tried to find the answer for this problem. I understood that it is not supported because of the following reasons
1.To avoid the Deadly Diamond of Death problem
2.To satisfy the one of the design goal of java "Simple, Object oriented and familiar". Details

Now how to achieve the same in java is explaned here


Thanks & Regards,
Srikanth Nalam.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

We do have forums dedicated to Java In General. This isn't really a question specific to Java Micro Edition.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Regarding Multiple inheritance
 
Similar Threads
Interface
Abstract, Interfaces!
why interface
Multiple inheritance
Interfaces question,