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
Is boolean a wrapper class in java?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is null object in java?
What is the same as procedures?
What is scope & storage allocation of global and extern variables? Explain with an example
What is quick sort in java?
What are peerless components?
Which sorting algorithm is best in java?
What is the use of coding?
Explain what is Marker interface?
what is heap memory?
What is finally block?
Explain about the main() method in java?
What is difference between wait and notify in java?
What is immutable in java?