Answer Posted / mms zubeir
There are two types of polymorphism.
1. Adhoc polymorphism (Overloading, templates).
2. Parametric polymorphism(Overriding).
If the behaviors are finite and known before its usage, it
is adhoc polymorphism. These bindings are done at
compilation itself and hence called compile time binding.
If the behaviors are infinite and known only at run time at
the time of use, it is parametric polymorphism. These
binding can be mapped at run time only and hence sometimes
referred as run time binding.
Note:- Virtual mechanism is used to resolve conflicts in
overriding polymorphically. Virtual mechanism itself
doesn't provide any polymorphism rather the overriding
leads to run time polymorphism.
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
What is constructor c++?
What are the two types of comments?
Is c++ an oop?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
What relational operators if statements in c++?
What is the difference between containment and delegation?
What is insertion sorting?
What is a static member?
Please explain class & object in c++?
What is the use of volatile variable?
Can we make copy constructor private in c++?
What is the history of c++?
Which c++ compiler is best?
What is a manipulator in c++?
Refer to a name of class or function that is defined within a namespace?