Method

The element "Method" is used to extend a class (program or function block) or an interface with a method.

Add method

Select the tool "Method": Method 1:

In the diagram you can then select the element that is to be extended with a method. At points that are not meaningful, the cursor has the form of a prohibition sign. At meaningful points the cursor has the form of a blue or black cross. If you click on such a point, a further method is added to the element in focus. The dialog "Add method" opens. Enter the required settings as usual. Closing the dialog expands the program element with this method, which is immediately updated in the class diagram and in the project tree.

Cursor

Access modifier

Method 4:

Available from TC3.1 Build 4026

The access modifier of a method or a property is displayed in the class diagram by means of a symbol. The following table shows which symbol stands for which access modifier.

Symbol

Access modifier

+

PUBLIC

#

PROTECTED

-

PRIVATE

~

INTERNAL