Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple inheritance in java

 
kiran nyala
Ranch Hand
Posts: 50
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is java supports multiple inheritance fully?If yes how it can?
 
kiran nyala
Ranch Hand
Posts: 50
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible multiple inheritance through inner classes in interfaces
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic