Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Multiple inheritance. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Multiple inheritance." Watch "Multiple inheritance." New topic
Author

Multiple inheritance.

T sandya
Ranch Hand

Joined: Aug 03, 2006
Posts: 64
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple inheritance.
 
Similar Threads
if Object is the super class of all classes then how come it will get inherited to all classes ?
Does Java Support Multiple Inheritance
Object class by default break to rule of multipul inheritance
Java doesn't support multiple inheritance rather it supports multi-level inheritance
Java Supports Multiple Inheritance without interfaces