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
Program to check whether a word is a sub-string or not of a string typed
What is class and structure in c++?
What is c++ stringstream?
What is the this pointer?
Why is "using namespace std;" considered bad practice?
Is java a c++?
What is a virtual destructor? Explain the use of it?
Write a recursive program to calculate factorial in c++.
Does c++ have string data type?
Is c++ fully object oriented?
What is data structure in c++?
What is c++ hiding?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
Difference between declaration and definition of a variable.
Why should you learn c++?