The new keyword is used to create an object of a specified type and return an access value that refers to the created object.

 

A new statement includes—in this order—the allocator (which, when evaluated, refers to the created object), followed by the reserved symbol ":=", followed by the reserved word "new", followed by the type of the object being created, and optionally followed by the reserved "new" and an expression for the initial value of the object being created.

 

LRM

    7.3

 

See also

image\diamond.gif  Objects, Data Types and Operators