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
To what does “event-driven” refer?
Write about the various sections of the executable image?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is an accessor in c++?
How can I disable the "echo" feature?
What is the use of function pointer?
How to declaring variables in c++?
How do I start a c++ project?
Explain class invariant.
What is a static member?
Briefly describe a B+ tree. What is bulk loading in it?
What is the use of class in c++?
What are the four main data types?
Describe about storage allocation and scope of global, extern, static, local and register variables?
what is C++ objects?