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
What is Java Reflection API? Why it’s so important to have?
What is the range of a character variable?
What is immutable in java?
Is string a data type in java?
What is callable java?
What is variable argument in java?
Explain the available thread states in a high-level?
What is one third plus one third as a fraction?
How many bits is a 64 bit byte?
What are the drawbacks of singleton class?
What is a class component?
What is the difference between break and continue statements?
Which access specifier can be used with class ?
What is remote method invocation (rmi)?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.