What Is Polymorphism in C++ ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sort does c++ use?

797


What is the use of map in c++?

870


What are shallow and deep copy?

836


Explain register storage specifier.

784


What is a .h file c++?

726


How to convert integer to string in C++

565


Who wrote stl?

885


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

812


What are the sizes and ranges of the basic c++ data types?

792


Can I learn c++ without c?

885


What is the highest level of cohesion?

762


What are the two shift operators and what are their functions?

810


What are the storage qualifiers?

886


What is constructor and destructor in c++?

847


What are virtual functions in c++?

900