The full declaration of the TObject type is:
TYPE
TObject = OBJECT
CONSTRUCTOR Init;
PROCEDURE Free;
DESTRUCTOR Done;Virtual;
END;
PObject = ^TObject;
|
-
Declaration:
- Constructor TObject.Init;
-
Description:
- Instantiates a new object of type TObject. It fills the instance up with Zero bytes.
-
Errors:
- None.
-
See also:
- Free (563), Done (564)
For an example, see Free (563)
-
Declaration:
- Procedure TObject.Free;
-
Description:
- Free calls the destructor of the object, and releases the memory occupied by the instance
of the object.
-
Errors:
- No checking is performed to see whether self is nil and whether the object is indeed
allocated on the heap.
-
See also:
- Init (563), Done (564)
Listing: objectex/ex7.pp
-
Declaration:
- Destructor TObject.Done;Virtual;
-
Description:
- Done, the destructor of TObject does nothing. It is mainly intended to be used in the
TObject.Free (563) method.
The destructore Done does not free the memory occupied by the object.
-
Errors:
- None.
-
See also:
- Free (563), Init (563)
Listing: objectex/ex8.pp