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 |
How does stack look in function calls? When does stack overflow? What can you do to remedy it?
What is Copy Constructor?
Can we use THIS Pointer in static function – Reason in C++?
Question on Copy constructor.
What are issues if we mix new and free in C++?
what is the difference between a pointer and a reference?
0 Answers Amazon, Blue Star, C DAC,
Write a syntax and purpose of switch statement.
To solve the 8 Queens problem, which algorithm is used?
Explain about Searching and sorting algorithms with complexities
What is the meaning of the following declaration: int *const *const *i?
Write a C++ Program to Display Number (Entered by the User).
what is a pragma in C++?