Constructor and Class-Constructor - Instance Constructor and Static Constructor - SAPTech
Constructor and Class-Constructor - Instance Constructor and Static Constructor - SAPTech
Instance Constructor
The constructor is a special instance method in a class and is always
named CONSTRUCTOR.
The constructor is automatically called at runtime with CREATE
OBJECT statement.
Static Constructor
This is a special static method in a class and is always names
CLASS_CONSTRUCTOR. It is executed once per program. This
constructor is called automatically before the class is first accessed,
but before any of the following actions are executed for the first time:
https://mysapnuts.blogspot.com/2017/03/constructor-and-class-constructor.html 1/2
4/13/23, 12:33 PM Constructor and class-Constructor / Instance Constructor and Static Constructor | SAPTech
0 Add a comment
https://mysapnuts.blogspot.com/2017/03/constructor-and-class-constructor.html 2/2