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
Who developed java?
Can a method be overloaded based on different return type but same argument type?
How can we create a synchronized collection from given collection?
Can a class have a static inner class?
What is the advantage of OOP in java?
Write a program to reverse array in place?
What is protected in java?
What is the formula to calculate percentage?
What is the symbol for average?
What are different types of expressions?
How do you implement tree mirroring in java?
What is <> used for in java?
Can we override constructor in java?
What is anti pattern in programming?
What is exception handling in java?