Defines the code to execute when an instance of a class is destroyed.
Destructor [ statements ] End [ Destructor ]
- Completes the Destructor statement. Alternatively, you can use End Destructor.
Typically, a destructor is needed to free a system resource, such as an Internet socket, for example.
Only a single destructor is permitted within a class. The destructor must be placed after any and every Constructor and before any Function, Method, or Sub.