| Author |
multiple inheritance in java
|
kiran nyala
Greenhorn
Joined: Sep 21, 2009
Posts: 23
|
|
Is java supports multiple inheritance fully?If yes how it can?
|
 |
Sona Patel
Ranch Hand
Joined: Mar 30, 2009
Posts: 75
|
|
|
java does not support multiple inheritance. A class can extend only one class, it can not extend multiple classes. however a class can implement multiple interfaces.
|
 |
kiran nyala
Greenhorn
Joined: Sep 21, 2009
Posts: 23
|
|
|
is it possible multiple inheritance through inner classes in interfaces
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
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)
|
 |
 |
|
|
subject: multiple inheritance in java
|
|
|