PUBLIC. |
Components declared in this section can be accessed from within the class and from outside including subclasses. |
PROTECTED. |
Components declared in this section can be
accessed from within the class and from subclasses and friends
- topics related to inheritance. |
PRIVATE. |
Components declared in this section can only be accessed from within the class in which they are declared and its friends. |
#### Creating the Visibility Sections
At least one section must be specified.
``` abap
CLASS local_class DEFINITION.
PUBLIC.
"Here go the components.
PROTECTED.
"Here go the components.
PRIVATE.
"Here go the components.
ENDCLASS.
```