Answer Posted / hrpynux@gmail.com
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 |
Post New Answer View All Answers
What is the difference between #import and #include?
What is static variable and difference between(const char *p,char const *p,const char* const p).
What can c++ be used for?
When should overload new operator on a global basis or a class basis?
Why do pointers exist?
What data encapsulation is in c++?
Describe linkages and types of linkages?
Can we use clrscr in c++?
What is data abstraction? How is it different from data encapsulation?
Is html an oop?
How can we check whether the contents of two structure variables are same or not?
Differentiate between late binding and early binding.
If class D is derived from a base class B
What is a null tree?
Explain the different access specifiers for the class member in c++.