Can we call a virtual function from a constructor?
You can call a virtual function in a constructor, but be careful. ... In a constructor, the virtual call mechanism is disabled because overriding from derived classes hasn't yet happened. Objects are constructed from the base up, “base before derived”.
| Is This Answer Correct ? | 0 Yes | 0 No |
What does it mean to take the address of a reference?
How can you force the compiler to not generate them?
How do you work around them?
What is a virtual function in C++?
Describe the different styles of function prototypes in C++.
What is wrong with this statement? std::auto_ptr ptr(new char[10]);
Define namespace.
What does it mean to declare a member function as static in C++?
Difference between function overloading and function overriding.
Write a C++ Program to Find Sum and Average of three numbers.
Do you know about Agilent PRECOMPILERS. ?
Write a syntax and purpose of switch statement.