what is polymorphism with example?types of polymorphism?
Answer Posted / vignesh,c
poly means many morph means shapes so, one function taking
many shapes ,for ex: take the function name as add,
by passing different sets of arguments it can add 2no.s,3
numbers etc....
there are two types of polymorphism namely,
runtime polymorphism,compile time polymorphism,
compile time Polymorphism means function overloading,
run time polymorphism means virtual functions.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the list interface in java programming?
What is a double vs float?
Which is a valid identifier?
Can we extend immutable class?
What is java and why do we need it? Explain
If a method is declared as protected, where may the method be accessed?
How to print nodes of a Binary tree?
What is anagram word?
What happens if an exception is throws from an object's constructor?
Can we restart a dead thread in java?
Write a program to print fibonacci series up to count 10.
What is an array in java?
Is string a wrapper class?
What does main method?
Which java version is latest?