Answer Posted / priyanka kokil
I want to modify the above answer. A constructor cannot be
virtual because at the time when the constructor is invoked
the virtual table would not be available in the memory.
Hence we cannot have a virtual constructor. But we can have
virtual destructor which is defined in Answer #2
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are guid?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What is rtti in c++?
What is the use of object in c++?
What is the purpose of ios::basefield in the following statement?
How do I use arrays in c++?
What is the return value of the insertion operator?
Write about the local class and mention its use?
Describe the advantage of an external iterator.
Explain abstraction.
What is the header file for setw?
What are the rules about using an underscore in a c++ identifier?
Explain how we implement exception handling in c++?
Does c++ have foreach?
What do you mean by stack unwinding in c++?