Generate constructor
You can generate a constructor with defined visibility for classes, datatypes, interfaces, and artifacts.
Procedure. Procedure
Right-click a class, a datatype, an interface, or an artifact.
Click Generate constructor. The Generate constructor dialog opens.
Use the Visibility box to select the visibility of the constructor.
In the Constructor attributes to be included box, select the attributes of the underlying element you want to include as parameters of the constructor.
Click OK.
The constructor is generated and added to the underlying element.