Computer Applications
Polymorphism means different forms. Explain Polymorphism in Java and provide examples to support your answer.
OOP Intro Java
63 Likes
Answer
Polymorphism is the ability of a method or an object to take on multiple forms. In OOP, polymorphism allows an operation to exhibit different behaviour in different instances. The behaviour depends upon the type of data used in the operation. For example, consider the operation of addition. For two numbers, the operation will generate a sum. If the operands are strings, then the operation would produce a third string by concatenation.
Answered By
35 Likes