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 class of exceptions are generated by the java run-time system?
How do you compare objects in java?
What is the use of default method in interface in java?
What is stack class in java?
What is polymorphism java example?
What is merge sort in java?
Is binary a low level language?
What is the range of a character variable?
Is set sorted in java?
What are the types of relation?
Difference between vector and arraylist.
How objects of a class are created if no constructor is defined in the class?
Why java uses the concept of the string literal?
explain what is transient variable in java?
What is the argument in java?