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
posted
0
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
posted
0
Hi Just make other class as an interface and you can implement any no of interface. No probs.