Note: Finalizers (like Constructors and Custom Operators) are very similar in structure to regular methods, and many topics covered in the Methods topic will apply to them, as well, in particular the the section on Method Body
Similar to Constructors, Oxygene uses a special
finalizer keyword to declare finalizers. Finalizers are always considered
p[rivate, and they cannot be called explicitly from code, they will only be called implicitly, by the runtime. Finalizers cannot have parameters or a return type.
type MyClass = public class finalizer; begin ... end; end;
Finalizers do not participate in Virtuality Modifiers., and cannot have
No modifiers are allowed on finalizers.