Instance Operator- NEW(Part 2)

Instance Operator NEW can be used to create Instance/object of any Class. CLASS lcl_demo DEFINITION.   PUBLIC SECTION.     METHODS : disp. ENDCLASS. CLASS lcl_demo IMPLEMENTATION.   METHOD disp.     WRITE :/ ‘Hello’.   ENDMETHOD. ENDCLASS. START-OF-SELECTION. * Old way to create an Object and calling the method   DATA : obj1 TYPE REF TO lcl_demo.   CREATE OBJECT obj1.

Continue reading

Rate this:

1 39 40 41 42 43 44