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 Multiple Inheritance Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Multiple Inheritance Problem" Watch "Multiple Inheritance Problem" New topic
Author

Multiple Inheritance Problem

ashah
Greenhorn

Joined: Aug 20, 2000
Posts: 2
Hello! Friends,
AS we know java don't support multiple inheritance but if scenrio is like that there are two classes and we want to have features of both (ie multiple Inheritance) so is there any way we can acheieve this through Java or there is no way.
Thanks!
Eric Edwards
Ranch Hand

Joined: Feb 12, 2000
Posts: 60
Originally posted by ashah:
Hello! Friends,
AS we know java don't support multiple inheritance but if scenrio is like that there are two classes and we want to have features of both (ie multiple Inheritance) so is there any way we can acheieve this through Java or there is no way.
Thanks!

If I am understanding you correctly in what you are trying to do,
I believe that is what the Interface is used for.
Good Luck!
srinivas acharyulu
Greenhorn

Joined: Aug 03, 2000
Posts: 19
Hi
Just make other class as an interface and you can implement any no of interface. No probs.

D.Srinivas Acharyulu<BR>SystemsEngineer,<BR>WIPRO Technologies,<BR>Hyderabad,India
 
IntelliJ Java IDE
 
subject: Multiple Inheritance Problem
 
Threads others viewed
Interface
Java Supports Multiple Inheritance without interfaces
Multipl Inheritance Problem
Abstract, Interfaces!
Inheritance issue
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture