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
Explain the different forms of polymorphism?
Write a java program to generate fibonacci series ?
How can a gui component handle its own events in java programming?
What is the function of static in java?
What is local declaration?
What is boolean example?
What is finalize()?
What is thread count in java?
who can i handle multiple client in RMI
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
How do you identify independent and dependent variables?
What are meta-annotations?
What is parseint?
Is void a keyword in java?
Can inner class extend any class?