In UML diagrams, you can add operations to classifiers
to show the behavior of the classifier or the service that it provides.
You must have a diagram open in the diagram editor,
and the classifiers operations list compartment must be visible. Ensure
that you have not set preferences to filter or hide operations.
Note: If you set options to hide operations,
you do not see new operations in the diagram editor.
To
add an operation to a classifier in a diagram:
- In the diagram editor, right-click the classifier;
then click .
- Type a name for the operation and press Enter.
- Optional: Add parameters to the operation.
Tip: You can also add operations to classifiers
in the Model Explorer view.