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
How is class defined?
Write a program to sort the number with different sorts in one program ??
What is for loop and its syntax?
Can bst contain duplicates?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What does and I oop and sksksk mean?
Can static class have constructor?
What is multilevel inheritance explain with example?
What are the three main types of variables?
Why is polymorphism needed?
What makes a language oop?
What is polymorphism what are the different types of polymorphism?
Can a varargs method be overloaded?
What is destructor example?
What is use of overloading?