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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 main oop principles?

685


How is polymorphism achieved?

585


2. Give the different notations for the class.\

1592


Which language is pure oop?

551


What are the three main types of variables?

600






What is the real life example of polymorphism?

607


what are the ways in which a constructors can be called?

1583


Is abstract thinking intelligence?

594


What is difference between multiple inheritance and multilevel inheritance?

603


What is class and object with example?

585


Why is abstraction needed?

567


What do you mean by variable?

577


any one please tell me the purpose of operator overloading

1967


What is byval and byref? What are differences between them?

1689


Explain the concepts involved in Object Oriented programming.

638