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 ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What is lambda in java?
What is the maximum length of a url?
What is the basic concepts of OOPS?
Can we have any code between try and catch blocks?
What is qms certification?
Is passing by reference faster?
What is fail first in java?
What is the use of singleton?
What is java lang string?
what state does a thread enter when it terminates its processing? : Java thread
What is package protected in java?
What does || mean in vectors?
What is final, finally, finalize?
What is variable and rules of variable?