How can you do multiple inheritance in Java

Showing Answers 1 - 11 of 11 Answers

Vrushali Talokar

  • Jun 10th, 2005
 

Its not possible directly. That means this feature is not provided by Java, but it can be achieved with the help of Interface. By implementing more than one interface.

anil sharma

  • Jul 27th, 2005
 

muliple inheritance is done with the help of interfaces 
interfaces

kishor

  • Aug 17th, 2005
 

why use uinterfaces for multiple inheritence in java?

  Was this answer useful?  Yes

Pavan

  • Sep 2nd, 2005
 

Java overcame the problem of multiple inheritance exist in C++.In C++ we can create a class by extending from more than one class. It is problematic. So in Java this feature is eliminated. Anyway for getting multiple inheritance, Java introduced the concept of interfaces. So we can create a class by extending one class or we can implement any number of interfaces for it. But the restriction is we have to implement / describe every method existing in the interfaces. That's the rule. Ithink u know the concept of Interfaces!!!!!!!!!!!!!!!!!.right

  Was this answer useful?  Yes

sonia

  • Sep 16th, 2005
 

multiple inher.. in java is implemented by INTERFACE

  Was this answer useful?  Yes

jayant

  • Sep 28th, 2005
 

In java, multiple inheristance not supports, but using keyword 'implements', its allow to inherits multiple inteface separated by comma --- jayant dhargawe

  Was this answer useful?  Yes

Devidas Sonawane

  • Oct 3rd, 2005
 

hi Devidas

In Java we can use inheritance by using extends keyword. but by using implements we can inheritance more classes and this less complicated

  Was this answer useful?  Yes

Divya

  • Aug 12th, 2006
 

you can use your own apporach for multiple inheritence

  Was this answer useful?  Yes

Anil Omanwar

  • Jan 11th, 2007
 

hi,

To achieve multiple Inheritance in java we must use Interface.

  Was this answer useful?  Yes

sony

  • Nov 27th, 2011
 

Its not possible directly. That means this feature is not provided by Java, but it can be achieved with the help of Interface. By implementing more than one interface

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions