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
What is c++ manipulator?
What is c++ coding?
Why namespace is used in c++?
Difference between pointer to constant and constant pointer to a constant. Give example.
What are the benefits of operator overloading?
Explain the use of this pointer?
Can a list of string be stored within a two dimensional array?
Can you Mention some Application of C/C++?
Is c++ slower than c?
Is c++ double?
What's the most powerful programming language?
What are the benefits of pointers?
which operator is used for performing an exponential operation a) > b) ^ c) none
Discussion on error handling of C++ .
Is atoi safe?