Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple inheritance.  RSS feed

 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two classes, Class A and Class B.
Class A is implicitly extending the Class Object.
Now if Class B extending the Class A, Class B also extending the Object Class, so it is violating the multiple
inheritance concept in java right?
how it is possible.?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15865
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, multiple inheritance is extending two classes at the same level. In your example, the base classes are not at the same level.

Please do a search for "multiple inheritance" in the forums here; this topic is discussed regularly here, and your question has been asked often. If you do a search you will find a list of answers very quickly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!