ABAP Keyword Documentation →  ABAP − Reference →  Declarations →  Declaration Statements →  Classes and Interfaces →  CLASS →  CLASS - DEFINITION → 

PROTECTED SECTION  Syntax Diagram

Short Reference

Syntax

PROTECTED SECTION.

Effect

You can only use this statement in the declaration part of a class. It defines the protected visibility section of the class class.

All components of the class declared in the area behind the statement PROTECTED SECTION can be addressed directly only in the subclasses of the class and in the class itself (plus its friends), if allowed by the package concept. Protected methods in subclasses can be redefined.

Notes

Example

See Visibility Sections.