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 is the difference between a method and a function in alice?
What does int argc char * argv [] mean?
What is string length in java?
What happens when main () method is declared as private?
What is jagged array in java?
What are the methods of object class ?
What are the advantages of exception handling?
Is it possible for a yielded thread to get chance for its execution again?
What is the difference between error and an exception?
What are the differences between checked exception and unchecked exception?
When do you get classcastexception?
What are variable arguments or varargs?
How objects of a class are created if no constructor is defined in the class?
Define Multiprogramming and Multiprocessing in java.
What is the use of list in java?