What are the different types of polymorphism?

Answers were Sorted based on User's Feedback



What are the different types of polymorphism?..

Answer / dee

compile time--->operator and function overlaoding
run time --->virtual

Is This Answer Correct ?    8 Yes 3 No

What are the different types of polymorphism?..

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

What are the different types of polymorphism?..

Answer / uio

there are two types of palymorphism
1.operator overloading
2.function overloading

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More C++ General Interview Questions

Why do we use classes in c++?

0 Answers  


What is slicing?

1 Answers  


What is the sequence of destruction of local objects?

0 Answers  


Differentiate between late binding and early binding. What are the advantages of early binding?

0 Answers  


How can we access protected and private members of a class?

0 Answers  






Write the program form Armstrong no in c++?

11 Answers   HCL,


What are the advantages of using a pointer?

0 Answers  


Can we specify variable field width in a scanf() format string? If possible how?

0 Answers  


What are friend functions in C++?

0 Answers   BlackRock,


What do you mean by persistent and non persistent objects?

1 Answers  


What is a dynamic binding in c++?

0 Answers  


Write about the members that a derived class can add?

0 Answers  


Categories