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 does std mean in c++?
What is the best it certification?
Can I learn c++ without knowing c?
Is c++ map a hash table?
How can you quickly find the number of elements stored in a static array?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What is jump statement in C++?
Why is c++ so fast?
How would you implement a substr() function that extracts a sub string from a given string?
Can we define a constructor as virtual in c++?
How do you establish an is-a relationship?
What is a binary file? List the merits and demerits of the binary file usagein C++.
Explain about Virtual Function in C++?
What is vector string in c++?