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
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is polymorphism and why is it important?
What are the advantages of polymorphism?
Is react oop?
What is destructor in oop?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
How many human genes are polymorphic?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is byval and byref? What are differences between them?
Why oops is important?
How do you use inheritance in unity?
c++ program to swap the objects of two different classes
Can we define a class within the interface?
How to use CMutex, CSemaphore in VC++ MFC
What is encapsulation with example?