Answer Posted / josh
Polymorphism
Poly means “many” and morph means “form”. In the context of
object-oriented systems, polymorphism 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
Why is polymorphism important in oop?
What are the three main types of variables?
How to use CMutex, CSemaphore in VC++ MFC
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is object in oop with example?
write knight tour problem which is present in datastructure
What is multilevel inheritance in oop?
What is the use of oops?
what's the basic's in dot net
What is abstraction with example?
Get me an image implementation program.
What does no cap mean?
Can a varargs method be overloaded?
What is abstraction in oop?
Who invented oop?