Constructor is a special type of method whose name is the constructor.
Constructors are executed automatically when the object of the class is created.
Always Constructor’s visibility is public.
2 types.
Instance constructor.
Static constructor.
The instance constructor called automatically when the object is created.
Instance constructor can be called as per the number of objects are created.
Instance constructor can be called method name "CONSTRUCTOR".
An instance constructor can have IMPORTING parameters and exceptions. You must pass all non-optional parameters when creating an object.
Serkan AKKAVAK
Computer Engineer BSc
SAP Department Deputy Manager
Contact : serkurumsal@yandex.com
0 Comments