The components of classes and interfaces are declared in the declaration part of classes and interfaces. The most important components of a class are as follows:
Attributes are the data objects in a class. In addition, you can also declare class-specific data types. The declaration of attributes and data types takes place using the general statements TYPE-POOLS, TYPES, DATA, CLASS-DATA, and CONSTANTS, which are also possible in other contexts, with the exception of CLASS-DATA.
Methods and events are declared using the special statements [CLASS-]METHODS and [CLASS-] EVENTS, which can only be specified in the declaration part of classes and interfaces.