IntelliJ IDEA 2021.1 Help

Create new constructor

UML Class diagram - Context menu of a node element | New | Constructor
Alt+Insert

ItemDescription
Parameters
TypeSpecify the parameter type.

Note that code completion works here. As you type, the suggestion list shrinks to show the matching options. Non-existent type is marked as a syntax error.

NameSpecify the parameter name.
Add/RemoveUse these buttons to add/remove parameters.
Move Up/DownUse these buttons to reorder parameters by moving them up or down in the parameter list.
VisibilitySelect one of the options to change visibility scope of the constructor.
Exceptions
Add/RemoveUse these buttons to add/remove exceptions. For each new exception, specify its type.

Note that code completion works here. As you type, the suggestion list shrinks to show the matching options. Non-existent type is marked as a syntax error.

Move Up/DownUse these buttons to reorder exceptions by moving them up or down in the list.
Signature PreviewThis read-only area shows the draft constructor signature as you fill in the dialog fields.
Last modified: 08 March 2021