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 a far pointer? where we use it?
Who calls main function?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What does ios :: app do in c++?
How much is c++ certification?
What is the use of volatile variable?
What are c++ data types?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What are the five basic elements of a c++ program?
Explain the uses oof nested class?
What is a map in c++?
Which is the best c++ compiler?
What is namespace & why it is used in c++?
What is function overloading in C++?
Is it possible to write a c++ template to check for a function's existence?