Computer Applications

Write short notes on Polymorphism with an example (if applicable)

OOP Intro Java

101 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

64 Likes


Related Questions