What is the Advantage of Interface over the Inheritance in
OOPS?

Answers were Sorted based on User's Feedback



What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / mms zubeir

1. Provides flexibility in implementing the operations for
the derived classes.

2. Avoid conflicts when more than one interfaces are
derived in a class.

I will club some more later...

Is This Answer Correct ?    28 Yes 9 No

What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / iyappan_protech

1)Interface totally keeps away that implementation
knowledge from client.
2)It supports us to change their behaviour dynamically.It
means that, it will act depends on dynamic specilization(or
substitution).
3)This gives very good abstraction about the object to
client.
4)It avoids client broken, even developer made some changes
on implimentation or add new specilization(new
implementation).
5)So it gives open way to extend and implementation.

Is This Answer Correct ?    16 Yes 11 No

What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / poorna chandar rao

in inheritence is not support the multiple inhertence but
interface is supported multiple inhertence because imterface
is advatage over the inhertience

Is This Answer Correct ?    8 Yes 10 No

What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / rajendra patidar

On OOPS due to multiple inheritance duplicate value may be
received by derived class, so compiler do not understand
what syntax should compile.
Interface Refuse such type of problem in java.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More OOPS Interview Questions

Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?

2 Answers  


What is the differances between a abstract calss and interface

5 Answers   Aviva, Symphony,


write a program that takes input in digits and display the result in words from 1 to 1000

0 Answers   Wipro,


JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?

3 Answers  


what are abstract classes and how they impliment , with example

2 Answers  






How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.

4 Answers   NIIT, TCS,


What is object in oops?

0 Answers  


what is the main difference between sizeof() operator in c and c++

3 Answers  


to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123

2 Answers  


What is the difference between a mixin and inheritance?

0 Answers  


Program to read a comment string

1 Answers   IBM,


WAP find square root of any number (without using sqrt() )?

3 Answers  


Categories