0
What is the use of virtual destructors?
2 Antworten
+ 1
a virtual destructor in a base class delegates the object destruction to the subclass that inherits from it.
As a general rule of thumb, if you are inheriting from the class you should give it a virtual destructor.
0
thanks