- First goto SE24 and create a class with instantiation as PRIVATE.
- Now create a constructor visibility as PRIVATE so that nobody can create instantiate the class.
- Now create a STATIC and public method GET_INSTANCE and write the below code .
CREATE OBJECT gref_obj.
ENDIF.
- We created above method as static so that we need not to instantiate the class as static method can be directly called from class reference.
Rahul Gupta
No comments:
Post a Comment