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
Is null function in java?
What are the three best choices for a development environment?
What is jvm? Why is java called the platform independent programming language?
Is null a string?
Write a program to find the whether a number is an Armstrong number or not?
Does sprintf allocate memory?
What is a stack class in java ?
Why is multithreading important?
What are wrapped classes in java programming?
What does it mean to be immutable?
What is the size of boolean variable?
What do you mean by composition in java?
What is a substitution variable?
What are the 3 types of loops in java?
What is the access scope of a protected method?