This statement can only be used in the declaration part of a class. It defines the public
of the class
class. All components of the class that are declared after the
PUBLIC SECTION are accessible from outside the class, in their subclasses, and in the class itself as long as this permitted by the
package concept. Public methods in particular can be redefined in subclasses.
Declares a public constant
const and accesses it from outside of the class.
CLASS cls DEFINITION. PUBLIC SECTION. CONSTANTS const TYPE string VALUE `I'm public`. ENDCLASS. START-OF-SELECTION. cl_demo_output=>display( cls=>const ).