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
Can I learn java in 3 months?
What is ellipsis in java?
What's the difference between comparison done by equals method and == operator?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
Why java is platform independent? Explain.
What is abstraction in java?
What is the difference between replace and replace all?
Can you sort a list in java?
What are green threads in java?
What is autoboxing in java?
What is preparedstatement in java?
How will you call an Applet using Java Script Function?
What are the parts of a method?
Why char array is favored over string for the storage of passwords?
If you do not want your class to be inherited by any other class. What would you do?