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

Can a destructor be called directly?

606


What is polymorphism oop?

623


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2150


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4245


What exactly is polymorphism?

611






Why is object oriented programming so hard?

616


Can you inherit a private class?

634


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

1584


What does and I oop and sksksk mean?

654


Why is polymorphism important in oop?

637


Do you know about multiple inheritance?

642


What is debug class?what is trace class? What differences are between them? With examples.

1612


Where You Can Use Interface in your Project

1429


Why is abstraction used?

612


What is abstraction encapsulation?

660