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 |
Write a syntax and purpose of switch statement.
What is an abstract class in C++
0 Answers SwanSoft Technologies,
What is conversion constructor in C++
How does free know the size of memory to be deleted
What is data abstraction? How is it implemented in C++?
Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.
What is a virtual base class?
What are Agilent PRECOMPILERS?
Describe the different styles of function prototypes in C++.
What is a virtual function in C++?
Write a program that ask for user input from 5 to 9 then calculate the average
Explain function prototypes in C++.