What are the different types of polymorphism?
Answers were Sorted based on User's Feedback
Answer / dee
compile time--->operator and function overlaoding
run time --->virtual
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / 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 |
Answer / uio
there are two types of palymorphism
1.operator overloading
2.function overloading
| Is This Answer Correct ? | 2 Yes | 6 No |
Differentiate between a template class and class template in c++?
How can an improvement in the quality of software be done by try/catch/throw?
What is a built-in function?
Is facebook written in c++?
How can you say that a template is better than a base class?
Define 'std'.
What are c++ data types?
Shall we use 'free' to free memory assigned by new, What are the further consequences??
Which compiler does turbo c++ use?
What is insertion sorting?
How are the features of c++ different from c?
What is the main purpose of c++?