System.TObject.Create
Delphi
constructor Create;
C++
__fastcall TObject();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.pas systobj.h |
System | TObject |
Description
Constructs an object and initializes its data before the object is first used.
Create constructs an object. The purpose, size, and behavior of objects differ greatly. The Create constructor defined by TObject allocates memory but does not initialize data.
Descendant objects usually define a constructor that creates the particular kind of object and initializes its data.
Note: If an exception escapes from a constructor, the object's destructor is called to clean up the failed instance.