Answer Posted / priyanka kokil
A virtual destructor is one that is declared as virtual in
the base class and is used to ensure that destructors are
called in the proper order. It is to be remembered that
destructors are called in the reverse order of inheritance.
If a base class pointer points to a derived class object
and we some time later use the delete operator to delete
the object, then the derived class destructor is not called.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain the extern storage classes in c++.
How compile and run c++ program in turbo c++?
What is == in programming?
What is while loops?
Can a built-in function be recursive?
Does c++ have arraylist?
What is difference between malloc()/free() and new/delete?
What is the default width for ouputting a long integer using the insertion operator?
Which function should be used to free the memory allocated by calloc()?
Can malloc be used in c++?
What is searching?
What is purpose of abstract class?
What is java and c++?
What is a pointer with example?
What is a dll entry point?