Deconstructors

Deconstructors

A destructor has no parameters and no return value (not even void)

Just like The Big Three Deconstructors share the same name as the class albeit prepended with a tilde ~ so this is a class with its constructor and destructor:

class SampleClass {
   public:
      SampleClass(); // Constructor
      ~SampleClass(); // Destructor
   private:
};

Children
  1. Implementation