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
What does enum stand for?
Write a program to reverse a string using recursive function?
Why is abstraction needed?
Which is not an object oriented programming language?
State what is encapsulation and friend function?
Can main method override?
What is polymorphism in oop example?
What is abstract class in oop?
What are oops functions?
what are the realtime excercises in C++?
What is abstraction with example?
How Do you Code Composition and Aggregation in C++ ?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
How do you answer polymorphism?
to find out the minimum of two integer number of two different classes using friend function