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 tab, 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, and select New > Operation or select New > UML > Behavior > Operation.
3. Type the name of the Operation, and then press the Enter key.