What Is Polymorphism in C++ ?
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 the difference between virtual functions and pure virtual functions?
CDPATH shell variable is in(c-shell)
How does stack look in function calls? Write a recursive function call, how will the stack look like?
Consider the following C++ program
What do you know about Volatile keyword in C++? Explain with an example code.
What is function overloading and operator overloading in C++?
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-; } }
What are string library functions(syntax).
When would you choose to return an error code rather than throw an exception?
What does it mean to declare a member function as static in C++?
Write a program to generate the Fibonocci Series in C++.
Tell me about virtual function