ABAPCLASS_DEFINITION - CLASS DEFINITION
Fill RESBD Structure from EBP Component Structure CPI1466 during BackupThis documentation is copyright by SAP AG.
CLASS - DEFINITION
Syntax
CLASS class DEFINITION [class_options].
[PUBLIC SECTION.
[components]]
[PROTECTED SECTION.
[components]]
[PACKAGE SECTION.
[components]]
[PRIVATE SECTION.
[components]]
ENDCLASS.
Effect
The statement block CLASS class DEFINITION - ENDCLASS declares a class named class.Naming conventionsapply to the name class. componentsof the class are declared between CLASS and ENDCLASS. Each component must be included in avisibilitysection after one of the statements PUBLIC SECTION, PROTECTED SECTION, PACKAGESECTION, or PRIVATE SECTION. These statements must be listed in the above order. The class does not need to include all the SECTION statements.
Using the classoptions additions of the CLASS statement, you can publish a class globally in the Class Library, define an inheritance relationship, make the class abstract or final, control where the class can be instantiated, and offerfriendship to other classes or interfaces.
Notes
- The class is the smallest encapsulation unit in ABAP Objects. A method can therefore use all componentsof all instances of the same class apart from the components of its own instance. An exception to this rule are subclasses that cannot access the private components of superclasses, if they are not theirfriends.
- The declaration part of a class can only be specifed in the context described under CLASS.
Addresses (Business Address Services) General Material Data
This documentation is copyright by SAP AG.
Length: 3508 Date: 20120518 Time: 204547 triton ( 102 ms )






