Defines a destructor for a class. A destructor is a special type of method that the AVM invokes when an instance of the class is deleted, either manually using the DELETE OBJECT statement or automatically through garbage collection.
Note:
DESTRUCTOR PUBLIC class-name ( ) :destructor-body
PUBLICThe name of the class this method destroys. This name must match the class name portion of the type name for the class (that is, the name of the class definition file excluding the .cls extension and any package path information).
...method-logic
...END DESTRUCTOR .This method typically contains logic to release system resources used by the class instance, for example, by executing the DELETE OBJECT statement for handle-based objects created by the class or by invoking the Dispose( ) method on .NET objects created by the class. However, note that if the ABL class inherits from a .NET class, you cannot reliably access members of the .NET super class from your class destructor, because .NET might already have garbage collected it.END DESTRUCTOR
DESTRUCTOR PUBLIC CustObj( ):EMPTY TEMP-TABLE ttCust.END DESTRUCTOR.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |