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 is byval and byref? What are differences between them?
What are different oops concepts?
Can we override main method?
Why do we use class?
Which language is not a true object oriented programming language?
why reinterpret cast is considered dangerous?
What is super in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
is there any choice in opting subjects like 4 out of 7
What is multilevel inheritance explain with example?
What is overriding in oop?
What is the diamond problem in inheritance?
What is the oops and benefits of oops programming?
what is difference between class template and template class?
What is the problem with multiple inheritance?