Creating a Method

  1. In the Outline pane of the SWC editor, select a diagram.
  2. 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.

  3. 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

Editing a Process/Method Implementation

Reserved Keywords