permaculture playing cards*
The moose likes Beginning Java and the fly likes multiple inheritance in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "multiple inheritance in java" Watch "multiple inheritance in java" New topic
Author

multiple inheritance in java

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

Is java supports multiple inheritance fully?If yes how it can?
kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

is it possible multiple inheritance through inner classes in interfaces
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18757
    
  40

kiran nyala wrote:is it possible multiple inheritance through inner classes in interfaces



As Sona already mentioned, java doesn't have multiple inheritance. Java only has a mechanism, aka interfaces, that can be used to alleviate the need for multiple inheritance. Interfaces, however, is not multiple inheritance.

Inner classes is not multiple inheritance either.


BTW, do you even know what multiple inheritance is?

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
Consider Paul's rocket mass heater.
 
subject: multiple inheritance in java