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

What is the difference between virtual functions and pure virtual functions?

1 Answers  


CDPATH shell variable is in(c-shell)

0 Answers   Siemens,


How does stack look in function calls? Write a recursive function call, how will the stack look like?

0 Answers   Adobe,


Consider the following C++ program

0 Answers  


What do you know about Volatile keyword in C++? Explain with an example code.

0 Answers   Adobe,






What is function overloading and operator overloading in C++?

0 Answers   IBS, TCS,


Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }

1 Answers  


What are string library functions(syntax).

0 Answers   Accenture,


When would you choose to return an error code rather than throw an exception?

0 Answers   Amazon,


What does it mean to declare a member function as static in C++?

0 Answers   Amazon,


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

0 Answers   Accenture,


Tell me about virtual function

1 Answers  


Categories