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 JVM?
What does this () mean in java?
Which sorting is used in arrays sort in java?
What are the two types of java programming?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is the finalize method do?
What is nested interface?
How use .contains in java?
What is singleton service?
Which browsers work with java?
What does g mean in regex?
What is the method in java?
How to sort numbers in java without array?
What is data member in java?
What is super constructor?