What are the different forms of polymorphism??
Answer Posted / mms zubeir
Though there are many answers which are all true to some
extent, I would like to conclude all these into two broad
categories:
1. Ad-hoc polymorphism
2. Parametric polymorphism
As the meaning of the names themselves suggests their usage.
If the range of actual types that can be used is finite
and the combinations must be specified individually prior
to use, it is called Ad-hoc polymorphism.
If all code is written without mention of any specific type
and thus can be used transparently with any number of new
types, it is called parametric polymorphism.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
to find out the minimum of two integer number of two different classes using friend function
what are the different types of qualifier in java?
What is use of overloading?
What are the three parts of a simple empty class?
What does sksksk mean in text slang?
Why is abstraction needed?
What is encapsulation c#?
what are the realtime excercises in C++?
What is abstraction oop?
What is the oops and benefits of oops programming?
What is overriding vs overloading?
What is encapsulation process?
What is abstract class in oops?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is destructor example?