What Is Polymorphism in C++ ?
Answers were Sorted based on User's Feedback
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 |
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 |
It is possible to build a C++ compiler on top of a C compiler. How would you do this?
Define namespace.
Tell How To Check Whether A Linked List Is Circular ?
Write a C++ Program to Find whether given Number is Odd or Even.
Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?
What is latest update of C++ ?
To solve the 8 Queens problem, which algorithm is used?
Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }
What is wrong with this statement? std::auto_ptr ptr(new char[10]);
How to generate random numbers in C++ with a range?
what is a pragma in C++?
What do you know about Volatile keyword in C++? Explain with an example code.