What Is Polymorphism in C++ ?



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

Post New Answer

More C++ Interview Questions

Tell us the size of a float variable.

0 Answers   Accenture,


What is the difference between creating an object, using 'new' and using 'malloc'?

3 Answers   HFG, Siemens,


What is an algorithm (in terms of the STL/C++ standard library)?

0 Answers   Amazon,


How to input string in C++

0 Answers  


Write a program to generate the Fibonocci Series in C++.

0 Answers   Accenture,






Explain about Searching and sorting algorithms with complexities

0 Answers   Accenture,


What Is A Default Constructor in C++ ?

0 Answers   Amazon,


Write a syntax and purpose of switch statement.

0 Answers   Agilent,


Explain the difference between C and C++.

0 Answers   Accenture,


What are the costs and benefits of using exceptions?

0 Answers   Amazon,


What is the difference between public, private, and protected inheritance?

0 Answers   Amazon,


What are the advantages and disadvantages of B-star trees over Binary trees?

0 Answers  


Categories