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 private static in java?
What an i/o filter in java programming?
What is the static method?
What do you understand by private, protected and public?
What is the inheritance?
why Java does not support multiple inheritances?
why java uses class level type casting ?
Is a method a function?
Wha is the output from system.out.println(“hello”+null); ?
What is api in java?
What is the difference between a vector & an array list?
Can we catch more than one exception in a single catch block?
Explain polymorphism citing an example.
Can set contain duplicates?
How do you use find and replace?