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 data types in oop?
Which is better struts or spring?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
How do you use inheritance in unity?
What does it mean when someone says I oop?
What is encapsulation in oop?
what is different between oops and c++
What are the benefits of polymorphism?
i got a backdoor offer in process global,Bangalore..Can i work with it?
officer say me - i am offered to a smoking , then what can you say
What is abstraction and encapsulation?
Why do we use oops?
What is encapsulation with example?
What is data binding in oops?