Destructor

The opposite of Constructors. They’re a special member function that is executed automatically when an object is destroyed.

  • Used to deallocate the memory that has been allocated on the heap for the object by the constructor.

In C++

(Didn’t finish…)