+ 1
What is the advantage of using the destructor?
3 Answers
+ 2
I want to extend the answers of my two predecessors: they mean *dynamically* allocated variables, i.e. via new operator, or if you like dirty C, malloc. :-)
Static or local variables are automatically taken care of.
+ 1
releasing resources aquired at time of construction of object and other lifetime of object