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

Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2134


What do you mean by overloading?

680


Why do we use polymorphism in oops?

678


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1752


What is multilevel inheritance in oop?

645






What is polymorphism oop?

708


What is basic concept of oop?

790


How do you explain polymorphism?

684


What is difference between multiple inheritance and multilevel inheritance?

716


What is object and class in oops?

686


Can you explain polymorphism?

678


Why multiple inheritance is not allowed?

684


Why is object oriented programming so hard?

708


What do you mean by Encapsulation?

728


What are different oops concepts?

672