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
write a program that takes input in digits and display the result in words from 1 to 1000
What is debug class?what is trace class? What differences are between them? With examples.
to find out the minimum of two integer number of two different classes using friend function
What is encapsulation oop?
What is class and object with example?
What is oops and its features?
What is oops concept with example?
What is polymorphism and types?
Who invented oop?
What are the 3 principles of oop?
How do you define a class in oop?
Can an interface inherit a class?
What is class and example?
What is the difference between inheritance and polymorphism?
Is this job good for future? can do this job post grduate student?