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
Can a destructor be called directly?
What is polymorphism oop?
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
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What exactly is polymorphism?
Why is object oriented programming so hard?
Can you inherit a private class?
what are the ways in which a constructors can be called?
What does and I oop and sksksk mean?
Why is polymorphism important in oop?
Do you know about multiple inheritance?
What is debug class?what is trace class? What differences are between them? With examples.
Where You Can Use Interface in your Project
Why is abstraction used?
What is abstraction encapsulation?