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
Is multimap sorted c++?
What is tellg () in c++?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
Which function should be used to free the memory allocated by calloc()?
What is iomanip c++?
Explain the difference between c & c++?
How to declaring variables in c++?
What is c++ prototype?
What is a local reference?
What you know about structures in C++?
Explain the term memory alignment?
Why is c++ still best?
Where Malloc(), Calloc(), and realloc() does get memory?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
How is c++ used in the real world?