Code: Alles auswählen.
method meth.
super->meth.
(.....redefinierendes Coding....)
endmethod
Code: Alles auswählen.
method meth.
(.....redefinierendes Coding....)
super->meth.
endmethod
Code: Alles auswählen.
*----------------------------------------------------------------------*
* CLASS lcl_parent DEFINITION
*----------------------------------------------------------------------*
CLASS lcl_parent DEFINITION.
PUBLIC SECTION.
METHODS: do_something FINAL,
do_something_child.
ENDCLASS. "lcl_parent DEFINITION
*----------------------------------------------------------------------*
* CLASS lcl_parent IMPLEMENTATION
*----------------------------------------------------------------------*
CLASS lcl_parent IMPLEMENTATION.
METHOD do_something.
* Hier der Teil von dem du möchtest, dass er vor der Redefinition durchlaufen wird.
do_something_child( ).
ENDMETHOD. "do_something
METHOD do_something_child.
* Leer lassen - hier darf sich die Redefinition austoben
ENDMETHOD. "do_something_child
ENDCLASS. "lcl_parent IMPLEMENTATION