Creating a Method
- In the Outline pane of the SWC editor, select a diagram.
Do one of the following:
- In the Insert menu, select Method.
- Click the
Insert Method button.
A new method is created in the Outline tab.
- Type in a name for the method and press <Enter>.
Each software component can contain one or more methods. A method can have a number of arguments and a return value. The arguments and the return value can be modified using the method signature editor.
See also
Adding an Argument to a Method
Adding a Return Value to a Method
Adding Local Variables to a Runnable or Method
Editing Arguments and Local Variables