class Example { // Rest of the class // members and methods. // Destructor ~Example() { // Your code } }