Constructors with Parameters (NFS 64738, JEDI 20)

JADE now supports a new extended create instruction and allows parameters to be declared on the create method, which enables you to create and initialize an object in a single step.

Use of the existing create instruction and create method continues to be supported, with the exception that the old syntax cannot be used if the class of the object being created has a constructor that has parameters.

This new syntax is allowed for any class, with or without an explicit constructor with or without parameters.

As JADE does not support method overloading, a class can still have one explicit constructor only.

For more details, see "create Instruction", in Chapter 1 of the JADE Developer's Reference, and "Using Constructors and Destructors", in Chapter 4 of the JADE Development Environment User's Guide.

See also the following subsections.