destructor
tagSyntax:
destructor
class {
cleanup code
}
The destructor
tag delimits code that you want invoked when an instance of class is destroyed. Just like for constructors, the code is placed in its own scope so that any local variable declarations will not conflict with those of other destructor
tags for class.