Private Public
Component Component
s s
Speed Increase_speed
Private Access, Public Access,
generally: generally:
Attributes Methods
Data Types Attributes can be Decrease_speed Events
one of three types:
Elementary
Structured
Table Type Get_speed
TO CREATE AN ABAP
Practical CLASS, OPEN
TRANSACTION CODE
Example SE24.
Attributes: Visibility & Level
Visibility Level
Public Attributes: Instance Attributes:
Generally Visible Exist per instance
Generally changeable. Exception: Defined with DATA
READ-ONLY addition.
Static Attributes:
Private Attributes
Exist per class
Only visible within the class
Definition with CLASS-DATA
Only changeable within the class
Visibility Level
Public Methods: Instance Methods:
Can generally be called Access to static and instance
components is possible
Defined with METHODS
Private Methods:
Can only be called within the class
Static Methods:
Only access to static components is
possible
Defined with CLASS-METHODS
You can access public
attributes and methods
Access to Static from outside a class (e.g.