Polymorphism is used at the time of implementing _____________

Options
- Operator overloading
- Abstraction
- Encapsulation
- Inheritance


CORRECT ANSWER : Inheritance

Discussion Board
C++ - Inheritance

Polymorphism is used at the time of implementing Inheritance. The fundamental idea of polymorphism is that a compiler doesn't know which method (i.e. base class implementation or derived class implementation of a method) to call during the compile time. It only knows during run time (based on the object). This is called as late binding. This type of polymorphism is called as polymorphism by inheritance.

Prajakta Pandit 01-27-2017 12:28 AM

Explanation.

Answer : Inheritance.

In programming languages, polymorphism means that some code or operations or objects behave differently in different contexts. The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.

Jayesh Sonar 02-24-2015 07:02 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement