Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Desctructor Explanation in C++

Destructor is inverse of the constructor. Destructor usually called when the objects are deallocated. To call it explicitly we can use classname with preceding a symbol ~
Example:
class ForgetCode {
ForgetCode(int i); // constructor
~ForgetCode(); // destructor
};