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
to find out the minimum of two integer number of two different classes using friend function
What are the benefits of interface?
what are the ways in which a constructors can be called?
How do you achieve polymorphism?
What is overloading and its types?
What is destructor in oop?
Who invented oop?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is difference between abstraction and encapsulation?
What is oops and why we use oops?
What is new keyword in oops?
What does sksksk mean in text slang?
Why multiple inheritance is not allowed?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box