| [Overview][Constants][Types][Classes][Procedures and functions][Variables] | 
Destroy an object.
Source position: objects.pp line 254
| destructor TObject.Done; virtual; | 
Done, the destructor of TObject does nothing. It is mainly intended to be used in the TObject.Free method.
The destructore Done does not free the memory occupied by the object.
None.
| 
 | Destroy an object and release all memory. | |
| 
 | Construct (initialize) a new object | 
program ex8; { Program to demonstrate the TObject.Done call } Uses Objects; Var O : PObject; begin Writeln ('Memavail : ',Memavail); // Allocate memory for object. O:=New(PObject,Init); Writeln ('Memavail : ',Memavail); O^.Done; Writeln ('Memavail : ',Memavail); end.