File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Multi level inheritance. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Multi level inheritance." Watch "Multi level inheritance." New topic
Author

Multi level inheritance.

Mushtaq Ahmed
Greenhorn

Joined: Sep 01, 2003
Posts: 5
why does java does'nt allow multilevel inheriance .
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
Multiple inheritance can be a serious mess and has been a point of contention in the C++ world, therefore Java has removed the notion of multiple inheritance.
However, you can implement multiple interfaces.


The secret to creativity is knowing how to hide your sources.
Jeremy Thornton
Ranch Hand

Joined: Feb 21, 2002
Posts: 91
Do you mean multiple inheritance?
If so, preventing multiple inheritance avoids many of the associated problems such as where D extends B and C both of which extend A. If you call a method on D which is implemented in B and C, which implementation do you choose?
Multi level inheritance (e.g. C extends B extends A) is allowed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multi level inheritance.