What Is Polymorphism in C++ ?

Answers were Sorted based on User's Feedback



What Is Polymorphism in C++ ?..

Answer / hrpynux@gmail.com

Polymorphism in C++ means, the same entity (function or object) behaves differently in different scenarios. Consider this example: The “ +” operator in c++ can perform two specific functions at two different scenarios i.e when the “+” operator is used in numbers, it performs addition.

Is This Answer Correct ?    0 Yes 0 No

What Is Polymorphism in C++ ?..

Answer / nashiinformaticssolutions

An object-oriented programming concept called polymorphism enables a function or object to act differently depending on the situation. Polymorphism in C++ can be called at compile time or at runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

How can you force the compiler to not generate them?

0 Answers   Amazon,


What is latest update of C++ ?

0 Answers   Adobe,


What kind of problems does name mangling cause?

0 Answers   Amazon,


Discuss the role of C++ shorthands.

0 Answers   Adobe,


What is RTTI and why do you need it?

0 Answers   Amazon,


Can we call a virtual function from a constructor?

1 Answers  


What are string library functions(syntax).

0 Answers   Accenture,


Define namespace.

1 Answers  


What is Copy Constructor?

5 Answers   ABC, Siemens,


Explain why C++ is not purely Object Oriented Language

0 Answers   Aspire,


Question on Copy constructor.

0 Answers   Alter,


How will you execute a stack using a priority queue? (Push and pop should be in O (1)).

0 Answers   Adobe,


Categories