C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 18)
18.
Which of the following correctly describes overloading of functions?
Virtual polymorphism
Transient polymorphism
Ad-hoc polymorphism
Pseudo polymorphism
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
36 comments Page 1 of 4.

Sam said:   4 years ago
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.
(7)

Manpreet Singh said:   3 years ago
What is Ad-hoc polymorphism?

Please explain me in detail.
(3)

Sanjay nannaware said:   9 years ago
The Four Polymorphisms in C++.

When people talk about polymorphism in C++ they usually mean the thing of using a derived class through the base class pointer or reference, which is called subtype polymorphism. But they often forget that there are all kinds of other polymorphisms in C++, such as parametric polymorphism, ad-hoc polymorphism and coercion polymorphism.

These polymorphisms also go by different names in C++,

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.

Ad-hoc polymorphism allows functions with the same name act differently for each type. For example, given two 'int' values and the '+' operator, it adds them together. Given two 'std::strings' it concatenates them together. This is called overloading.
(3)

Yamini said:   8 years ago
Can anyone please tell about overloading function in detail?
(1)

Saksham said:   1 decade ago
I am unable to find any material related to pseudo polymorphism(no definition, nothing at all). Any help would be greatly appreciated.

Ankita said:   1 decade ago
Ad hoc polymorphism is also known as operator overloading.

Ad hoc polymorphism is a specific case of polymorphism, where different operators have different implementations depending on their arguments.

Vishal said:   1 decade ago
As polymorphism has of 2 types, then ad-hoc polymorphism, pseudo polymorphism, Transient polymorphism work at compile time or run time ?

Govindarajan said:   1 decade ago
Pseudo Polymorphism is function overriding in derived class.

Chaitali said:   1 decade ago
What is Ab-hoc polymorphism concept?

Jasmine said:   10 years ago
Ab-hoc polymorphism is also a operator overloading or not?


Post your comments here:

Your comments will be displayed after verification.