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
What is the difference between abstract class and interface1? What is an interface?
What is synchronization and why is it important in java programming?
Is nan false?
Why java doesn’t support multiple inheritances?
How many techniques can be employed to create a string object?
What is set and get methods in java?
Can final class have constructor?
Can a class be final?
What do you mean by composition in java?
What does I ++ mean?
Compare overloading and overriding?
What is a vararg?
What is the benefit of lambda expressions?
What is difference between static class and singleton pattern?
What is a method vs function?