Adding operations to classifiers in diagrams

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:

  1. In the diagram editor, right-click the classifier; then click Add UML > Operation.
  2. Type a name for the operation and press Enter.
  3. Optional: Add parameters to the operation.
Tip: You can also add operations to classifiers in the Model Explorer view.
Related concepts
Operations
Classifiers
Related reference
Relationship types
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.