what is polymorphism with example?types of polymorphism?
Answer Posted / sandeep
It is reacting differently for the same kind of message.
For example,
Consider Parrot,Penguin & tiger
My message is "approach me quickly"
Their different reactions:
Parrot approaches me by " flying"
Penguin approaches me by "swimming"
Tiger approaches me by "running"
Here my message is simply "pproach me quickly"
But different things have been reacted differently.
This is called Polymorphism.
As far as my knowledge is concerned there is only one type
of polymorphism and that is runtime polymorphism.
| Is This Answer Correct ? | 69 Yes | 88 No |
Post New Answer View All Answers
Are strings immutable in java?
Can we create more than one object singleton class?
Which language is java?
What is oops in java?
How do you make an arraylist empty in java?
What is the most important feature of java? What is an interface?
Can we split string with in java?
Explain runtime exceptions?
What is assembly condition codes?
How are variables stored in memory?
Is an array a vector?
Can you start a thread twice in Java?
How to instantiate static nested classes in java?
Is a boolean 1 bit?
What is extension method in java?