Answer Posted / nakul 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 baller 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
What are guid?
Write about the members that a derived class can add?
What is the use of map in c++?
What are c++ variables?
Can we define function inside main in c++?
what is data abstraction in C++?
Explain the static storage classes in c++.
What is a try block?
What do you mean by translation unit in c++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What are the differences between java and c++?
What is difference between n and endl in c++?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Define a constructor?
Differentiate between an inspector and a mutator ?