Defining operations
84
The Implementation page appears.
3 Type or modify code directly in the window.
or
Click a tab at the bottom of the edit window and type or modify code.
4 Click OK.
Copying an operation to another class
You can copy an operation from one class and add it to another class. If the
class already contains an operation with the same name or code as the copied
operation, the copied operation is renamed. For example the operation
testPort is renamed testPort2 when it is copied to a class which already
contains an operation testPort .
v To copy an operation to another class:
1 Double-click a class in the model.
The class property sheet appears.
2 Click the Operations tab.
The Operations page appears.
3 Click the Add Operations tool.