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 is COPY CONSTRUCTOR and what is it used for?
What is a linked list in c++?
Explain bubble sorting.
How is data hiding achieved in c++?
Can we sort map in c++?
Where do I find the current c or c++ standard documents?
Can turbo c++ run c program?
How can I learn c++ easily?
What is the best c++ book?
What is a multiset c++?
What is oops in c++?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What is #include cstdlib in c++?
Explain what are accessor methods?
What is virtual function? Explain with an example