Static Constructor in SAP ABAP | ABAP Static Constructors | ABAP OOPS Static Constructor

preview_player
Показать описание
Hello Friends,

In this session we are going to see How to use Static Constructor in SAP ABAP object oriented programming.

What is Static Constructor in OO ABAP?

Static constructor is declared by CLASS-METHODS CLASS_CONSTRUCTOR statement
Static Constuctor is called in ABAP OOPS
1. before any other instance attributes and methods by using object var & obj meth reference,
2. before any other static attributes and methods by using cls var & cls meth,
3. before creating of an object by using create object obj,
4. before registering an event handler method by using set handler cls meth for the object obj.

Please refer video on Static Method and Instance Methods.

Please Read article on Static Constructor in ABAP OOPS.

Please visit my website to learn more about ABAP.

#Static_ConstructorD
#Class_Constructor

Thanks,
#LearnSapAbap
Instagram : @swap_neeeel
Рекомендации по теме