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 do you mean by ternary operator in java?
What is string syntax?
What do you understand by java virtual machine?
What are the differences between c++ and java?
What is the symbol for line break?
Is object a data type in java?
What is method reference in java?
Explain java coding standards for classes or java coding conventions for classes?
What are recursive functions? Give some examples?
How do you use substring in java?
How concurrent hashmap works?
What is the nested interface?
What is the multi-catch block in java?
What are the important features of Java 9 release?
What is the difference between iterator and list iterator?