REPORT YSUBOOPS18.
CLASS C1 DEFINITION.
PUBLIC SECTION.
METHODS : CONSTRUCTOR .
ENDCLASS.
CLASS C1 IMPLEMENTATION.
METHOD constructor.
WRITE:/5 'I am C1'.
skip.
ENDMETHOD.
ENDCLASS.
CLASS C2 DEFINITION INHERITING FROM C1.
ENDCLASS.
CLASS C2 IMPLEMENTATION.
ENDCLASS.
START-OF-SELECTION.
DATA: obj type ref to C2.
CREATE OBJECT: obj.
Output I am C1.
Here you can find examples and sample programs related to ABAP Report Programs, ALV Grid/List Programs, BDC, HR ABAP, Function Modules, BAPIs, BADIs, Smartforms, SapScripts, etc.
Google Search - Blog...........
Showing posts with label abap constructors of superclasses. Show all posts
Showing posts with label abap constructors of superclasses. Show all posts
Subscribe to:
Posts (Atom)