Answer Posted / amit kumar
Poly means “many” and morph means “form”. In the context of
object-oriented systems, it means objects that can take on
or assume many different forms. Polymorphism means that the
same operation may behave differently on different classes.
Polymorphism allows us to write generic, reusable code more
easily, because we can specify general instructions and
delegate the implementation details to the objects involved.
Since no assumption is made about the class of an object
that receives a message, fewer dependencies are needed in
the code and, therefore maintenance is easier. For example,
in a payroll system, manager, office worker, and production
worker objects all will respond to the compute payroll
message, but the actual operations performed are object specific
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you define a class in oop?
What is oops and its features?
Why is oop useful?
What is difference between polymorphism and inheritance?
Is html an oop?
What is the purpose of polymorphism?
What is abstraction in oop with example?
Why polymorphism is used in oops?
Why is encapsulation used?
Which language is pure oop?
What is the point of polymorphism?
What is class encapsulation?
Write a c++ program to display pass and fail for three student using static member function
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Why do we use inheritance?