GeekInterview.com
Series: Subject: Topic:
Question: 49 of 573

Multiple Interface

Why do we need interface concept instead of multiple inheritance? What is the drawback when we use the multiple inheritance?
Asked by: Deepa05rajendran | Member Since Dec-2010 | Asked on: Jan 31st, 2011

View all questions by Deepa05rajendran

Showing Answers 1 - 3 of 3 Answers
teja0809

Answered On : Feb 1st, 2011

View all answers by teja0809

Java doesn't support multiple inheritance still if we want to inheritate the onemethod in more than one class we can define it abstract in interface and we can use it in our class by simply implementing that interface. In this we make our class loosely coupled...

Yes  1 User has rated as useful.
  
Login to rate this answer.
Amol

Answered On : Sep 29th, 2011

But then need to implements all methods of interface.

  
Login to rate this answer.
sampra

Answered On : Mar 7th, 2012

View all answers by sampra

Java doesnt support multiple inheritance still if we want to inheritate the one method in more than one class we can define it abstract in interface and we can use it in our class by simply implementing that interface. In this we make our class loosely coupled...

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.