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 are the advantages of polymorphism?
What is difference between pop and oop?
What is encapsulation c#?
What is property in oops?
What is balance factor?
Can static class have constructor?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What are the benefits of oop?
What is constructor in oop?
What is interface? When and where is it used?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is the point of polymorphism?
What is difference between multiple inheritance and multilevel inheritance?
what's the basic's in dot net
any one please tell me the purpose of operator overloading