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 is the function of java?
How to display all the prime numbers between 1 and 100
Can we sort list in java?
What is identifier with example?
Why is string buffer better than string ?
Do loops java?
How destructors are defined in java?
In the below example, how many string objects are created?
What is the argument in java?
Difference between string s= new string (); and string s = "abv";?
What is instance means in java?
What are generic methods?
What is void class in java?
Does collectionutils isempty check for null?
What is palindrome in java?