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
What are the important components of cohesion?
Why do we use class?
What is pointer in oop?
What is overloading in oop?
What is multilevel inheritance?
What language is oop?
Prepare me a program for the animation of train
What is polymorphism what are the different types of polymorphism?
How do you use inheritance in unity?
Can private class be inherited?
write a C++ program for booking using constructor and destructor.
What does no cap mean?
What is object in oops?
What is a function in oop?
What are oops functions?