UML Modeling Techniques > Class modeling > Operations > Creating an operation
  
Creating an operation
You can create an Operation through a Class Diagram or a Modeler pane.
To create an operation through a class diagram:
1. On the Class Diagram toolbar, click the Operation button.
2. Click the item that is to own the Operation, that is, a Class, Data Type or Interface.
3. Type the name of the Operation, and then press the Enter key.
To create an operation through a Modeler pane:
1. In a Modeler pane, locate the item that is to own the Operation, that is, a Class, Data Type, Interface, Package or the Model.
2. Right-click the owning item.
3. Point to New , and then click Operation
or
Point to New , point to UML, point to Behavior , and then click Operation.
4. Type the name of the Operation, and then press the Enter key.