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 java ide should I use?
What is memory leak and how does java handle it?
What is the difference between char and char *?
What is meant by class?
How does indexof work?
How to sort array of 0 and 1 in java?
Can we change the value of static variable?
What are abstract methods in java?
What are advantages of using Java?s layout managers than windowing systems?
What are thread groups?
What do the thread?class methods run() and start() do?
What is an immutable object?
What is the function of character?
In a container there are 5 components. I want to display all the component names, how will you do that?
How does thread synchronization occurs inside a monitor?