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 is the difference between member functions and static member functions?
Tell How To Check Whether A Linked List Is Circular ?
Write a C++ Program to Find whether given Number is Odd or Even.
Explain the difference between method overriding and method overloading in C++?
Factory Method C++ – How to delete pointers returned by it
explain the term 'resource acquisition is initialization'?
What are issues if we mix new and free in C++?
CDPATH shell variable is in(c-shell)
Difference between Call by pointer and by reference.
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
What are Agilent PRECOMPILERS?
What is an algorithm (in terms of the STL/C++ standard library)?