Polymorphism

Q1. What is Polymorphism? Explain dynamic and static polymorphism. 

 

Polymorphism ( Poly means many and morphism means forms - from there it came taking more than one form. Polymorphism is another important concept of OOPS. It means to take more than one form. For example an operation may exihibit different behaviour in different instances. The behaviour depends upon the types 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.


Polymorphism is of two types dynamic polymorphism and static polymorphism.

Clieck here for Detail Solution

Leave Comment

Important Topics

Title
Java Question B 1
OOPS
Encapsulation
Abstraction
Inheritance
Polymorphism
JVM JRE