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
 
 
subject: Multiple Inheritance Problem
 
developer file tools