In UML diagrams, you can
add operations to classifiers to show the behavior of the classifier
or the service that it provides.
Before you begin
You must have a diagram open in
the diagram editor, and the classifier's operations list compartment
must be visible. Ensure that you have not set preferences to filter
or hide operations.
About this task
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:
Procedure
- 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.
What to do next
Tip: You can also add operations to classifiers
in the Project Explorer view.