System.Classes.DefaultAttribute.Create
Delphi
constructor Create(const DefaultValue: Boolean); overload;
constructor Create(const DefaultValue: AnsiChar); overload;
constructor Create(const DefaultValue: Char); overload;
constructor Create(const DefaultValue: Integer); overload;
constructor Create(const DefaultValue: Cardinal); overload;
constructor Create(const DefaultValue: Int64); overload;
constructor Create(const DefaultValue: UInt64); overload;
constructor Create(const DefaultValue: String); overload;
constructor Create(const DefaultValue: Extended); overload;
C++
__fastcall DefaultAttribute(const bool DefaultValue)/* overload */;
__fastcall DefaultAttribute(const char DefaultValue)/* overload */;
__fastcall DefaultAttribute(const System::WideChar DefaultValue)/* overload */;
__fastcall DefaultAttribute(const int DefaultValue)/* overload */;
__fastcall DefaultAttribute(const unsigned DefaultValue)/* overload */;
__fastcall DefaultAttribute(const __int64 DefaultValue)/* overload */;
__fastcall DefaultAttribute(const unsigned __int64 DefaultValue)/* overload */;
__fastcall DefaultAttribute(const System::UnicodeString DefaultValue)/* overload */;
__fastcall DefaultAttribute(const System::Extended DefaultValue)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Classes.pas System.Classes.hpp |
System.Classes | DefaultAttribute |
Description
Constructs an object and initializes its data before the object is first used.
System.Classes.DefaultAttribute.Create inherits from System.TObject.Create. All content below this line refers to System.TObject.Create.
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.