F What is Class in OO ABAP | CodeTheta

What is Class in OO ABAP

June 18, 2024

Class is a user defined data type which consists of member data and member function. Data and function combine into a single unit. In ABAP we can create
local class and global class.

Local Class we can create in the local report program.
Global Class we can create in SE24.

There are 3 components in Class -
1. Attributes
2. Methods
3. Events

Syntax:
CLASS cl_main DEFINITION.
  PUBLIC SECTION.
ENDCLASS.

CLASS cl_main IMPLEMENTATION.
ENDCLASS.

If you have any Question you can contact us or mail us. We will reply you as soon as possible.

Post a Comment