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
What is object and class in oops?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is destructor give example?
What is and I oop mean?
Who invented oop?
What is the point of polymorphism?
What is difference between data abstraction and encapsulation?
What is the main feature of oop?
What are the three parts of a simple empty class?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is abstraction example?
What is class in oop with example?
What is polymorphism and why is it important?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What are the advantages of polymorphism?