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 an algorithm (in terms of the STL/C++ standard library)?
Tell us the size of a float variable.
Define type casting in C++.
Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }
what do you mean by exception handling in C++?
What is a virtual function in C++?
What do you know about Volatile keyword in C++? Explain with an example code.
How do you work around them?
What are Agilent PRECOMPILERS?
Write a C++ Program to Reverse a Number using while loop.
Tell How To Check Whether A Linked List Is Circular ?
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.