Each operation follows a certain syntax which is built up using the following structure:

  1. Visibility: see Attribute Syntax (UML Class)
  2. Name: see Attribute Syntax (UML Class)
  3. Parameter: similar notation to attributes: In addition, a direction may be specified:
    • in: input parameter When the operation is used, a value is expected from this parameter.
    • out: output parameter After the execution of the operation, the parameter has adopted a new value.
    • inout: combined input / output parameter
  4. Type: type of the return value