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 |
Define namespace.
Explain the difference between C and C++.
What is conversion constructor in C++
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
Write a C++ Program to Reverse a Number using while loop.
What is Copy Constructor?
What Is A Conversion Constructor C++ ?
What does it mean to declare a function or variable as static?
Explain function prototypes in C++.
What is the 4 difference between delete[] and delete?
What is pass by value & reference.
What are the fundamental features of an object-oriented language?