Answer Posted / munendra kumar
The simple answer is that a virtual destructor is one that is declared with the virtual attribute.
The behavior of a virtual destructor is what is important. If you destroy an object through a pointer or reference to a base class, and the base-class destructor is not virtual, the derived-class destructors are not executed, and the destruction might not be complete.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
daily Routine of father
What do you mean by function and operator overloading in c++?
What is an undefined reference/unresolved external symbol error and how do I fix it?
Can we use clrscr in c++?
What is conditions when using boolean operators?
Why is c++ still used?
What is lvalue?
Write about the stack unwinding?
What are the types of pointer?
How java is different from c and c++?
What are move semantics?
Why is swift so fast?
Are iterators pointers?
Write is a binary search tree? Write an algo and tell complexity?
What is insertion sorting?