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 2 of 4.

Ramesh said:   1 decade ago
What is meant by Ad-hoc polymorphism, transient and pseudo polymorphism?

Sudhanshu said:   1 decade 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.

RAM said:   1 decade ago
What is meant by Pseudo polymorphism?

Pratishruti said:   1 decade ago
What is pseudo polymorphism or is there any other name to this?

Banu said:   1 decade ago
Can anyone give example pseudo polymorphism?

Swati said:   1 decade ago
I want to know about Pseudo polymorphism and Transient polymorphism?

Gopal said:   1 decade ago
Ad-hoc means compiled time polymorphism in which two things operator and function overloading means same name different argument at time or different work.

Snehal said:   1 decade ago
What is the exact means of ad-hoc polymorphism?

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.

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.


Post your comments here:

Your comments will be displayed after verification.