ProAnswers.org

what are destructors in c++

Destructors are used to release any resources allocated by the object’s constructor.

‘dtor’ is a typical abbreviation for destructor