The operator when overloaded in a class ?

Answer : B. Ad-hoc polymorphism

The operator when overloaded in a class ?

A. Virtual polymorphism

B. Ad-hoc polymorphism

C. Transient polymorphism

D. Pseudo polymorphism

Answer : B. Ad-hoc polymorphism

Explanation

  • Polymorphism means having many forms that in a single entity can takes more than one form.
polymorphism in cpp
The polymorphism classes are given below:
    • Subtype polymorphism is also known as runtime polymorphism
    • Parametric polymorphism is also known as compile-time polymorphism
    • Ad-hoc polymorphism is also known as overloading
    • Coercion is also known as (implicit or explicit) casting
Leave a Reply

Your email address will not be published.