*&---------------------------------------------------------------------*
*& Report ZOOABAP_CL17
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZOOABAP_CL17.
CLASS LCL_SUPER DEFINITION.
PUBLIC SECTION.
METHODS constructor.
CLASS-METHODS class_constructor.
ENDCLASS.
class lcl_super IMPLEMENTATION.
METHOD constructor.
WRITE : / 'Inside the Instance constructor of class lcl_super ....'.
endmethod.
METHOD class_constructor.
WRITE : / 'Inside the static constructor of class lcl_super ....'.
endmethod.
ENDCLASS.
CLASS lcl_child DEFINITION INHERITING FROM LCL_SUPER .
PUBLIC SECTION.
class-methods class_constructor.
ENDCLASS.
CLASS LCL_CHILD IMPLEMENTATION.
METHOD class_constructor.
WRITE : / 'Inside the static constructor of class lcl_child ....'.
endmethod.
ENDCLASS.
START-OF-SELECTION.
uline.
FORMAT COLOR 3.
data ob1 type REF TO lcl_child.
create OBJECT ob1.
uline.
FORMAT COLOR 7.
data ob2 TYPE REF TO lcl_child.
create OBJECT ob2.
FORMAT COLOR 2.
ULINE.
FORMAT COLOR 5.
data ob3 TYPE REF TO lcl_super.
create OBJECT ob3.