Professional Documents
Culture Documents
public .
methods fly.
methods loading.
endinterface.
public section.
methods ZIF_PLANE~LOADING
redefinition .
protected section.
private section.
ENDCLASS.
method ZIF_PLANE~LOADING.
WRITE : 'Passngers are boarding'.
endmethod.
ENDCLASS.
method ZIF_PLANE~FLY.
WRITE : / 'Engines are bootup, We are running on runway...'.
WRITE : / 'Roger! we are in sky, thanks for successful take-off'.
WRITE : / 'Auto pilot mode ON'.
endmethod.
ENDCLASS.
public section.
interfaces ZIF_PLANE
abstract methods LOADING .
protected section.
private section.
ENDCLASS.
public section.
methods ZIF_PLANE~LOADING
redefinition .
protected section.
private section.
ENDCLASS.
method ZIF_PLANE~LOADING.
WRITE : 'Freight is getting loaded via conveyer'.
endmethod.
ENDCLASS.
*&---------------------------------------------------------------------*
*& Report zabap_basic_report
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zabap_basic_report.
if p_type = 'P'.
create object lo_pass.
lo_plane = lo_pass.
else.
create object lo_cargo.
lo_plane = lo_cargo.
endif.
lo_plane->fly( ).