SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Short Reference →
CLASS - Short Reference
Syntax Forms
Declaration part
CLASS class DEFINITION [INHERITING FROM superclass]
[ABSTRACT]
[FINAL]
[CREATE {PUBLIC|PROTECTED|PRIVATE}]
[SHARED MEMORY ENABLED]
[FOR TESTING
[RISK LEVEL {CRITICAL|DANGEROUS|HARMLESS}]
[DURATION {SHORT|MEDIUM|LONG}] ]
[[GLOBAL] FRIENDS [class1 class2 ...]
[intf1 intf2 ...] ].
[PUBLIC SECTION.
[components]]
[PROTECTED SECTION.
[components]]
[PRIVATE SECTION.
[components]]
ENDCLASS.
Implementation part
CLASS class IMPLEMENTATION.
implementations
ENDCLASS.
Effect
Declaration and implementation of a class class. In the declaration part, the components components of a class are declared in the
visibility sections
PUBLIC,
PROTECTED, and PRIVATE
SECTION, using ALIASES, [CLASS-]DATA, [CLASS-]METHODS, and [CLASS-]EVENTS. In the implementation part, all the
concrete methods declared
in the declaration part between METHOD and ENDMETHOD are implemented.
Additions