Skip to content

Glossary: C++ Basics

Destructor

Also written: destructors

A member function named `~` plus the class name that runs automatically when an object ends. It is where an object gives back what it holds.

Where the book teaches it

Related terms

ConstructorRAIIStack unwinding