What is the Advantage of Interface over the Inheritance in
OOPS?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What is polymorphism explain?
difference between structure and union.
Have you ever interfaced with a database?
Which is the parameter that is added to every non-static member function when it is called?
Why many objects can working together? How objects working togetherM I want to see example code.
Why is abstraction used?
what is runtime polymorphism? For the 5 marks.
What is conditional Compilation?
what is cast operator?
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is protected in oop?