Object.Create

Syntax

Create;

Description

The Create constructor creates an instance of class object.

Comments

This is a basic constructor available for all object classes. The result of constructor execution is a new instance of object of the class, for which the constructor has been invoked. This is a parameterless constructor, which must be used together with the keyword NewNew.

Example

Class A: Object
    //Implement class members
End Class A;

Sub Main;
Var
    Obj: A;
Begin
    Obj := New A.Create;
    //Use the Obj object
End Sub Main;

This is a common example for creating object instances of any class.

See also:

Object