General Static Methods
1. CLASS-METHODS meth
[IMPORTING parameters [PREFERRED PARAMETER p]]
[EXPORTING parameters]
[CHANGING parameters]
[{RAISING|EXCEPTIONS} exc1 exc2 ...].
Functional Static Methods
2. CLASS-METHODS meth
[IMPORTING parameters [PREFERRED PARAMETER p]]
RETURNING VALUE(r) typing
[{RAISING|EXCEPTIONS} exc1 exc2 ...].
Static Constructors
3. CLASS-METHODS class_constructor.
Event Handlers
4. CLASS-METHODS meth
FOR EVENT evt OF {class|intf}
[IMPORTING p1 p2 ... [sender]].
The CLASS-METHODS statement declares a static method meth. The naming conventions apply for the name meth. With the class component selector (=>), static methods can be used independently of objects. In static methods, you can only access the static components of the class or its superclasses if you do not use the component selector.
Using the variants of the CLASS-METHODS statement, different types of method declaration are possible :