REALbasic
Destructors in REALbasic can be in one of two forms. Each form uses a regular method declaration with a special name (with no parameters and no return value). The older form uses the same name as the Class itself with a ~ (tilde) prefix. The newer form uses the name "Destructor". The newer form is the preferred one because it makes refactoring the class easier.
Class Foobar // Old form Sub ~Foobar End Sub // New form Sub Destructor End Sub End ClassRead more about this topic: Destructor (computer Programming)