How can I access a super class method from a child class method?
Here is an example that illustrates the problem: Let's say we have two classes
class parent definition.
public section.
methods f.
endclass.
class child definition inheriting from parent.
public section.
methods f redefinition.
methods g.
endclass.
Now, in the implementation g, we want to call the implementation of the superclass fsimilar to the following syntactically incorrect fragment
class child implementation.
method g.
super->f( ). "forbidden: super-> can only be used to call the previous implementation of the same method
endmethod.
endclass.
As indicated in the comment, super->it is impossible to use . You can help?
After some googling, it was suggested to copy the implementation parent->finto child->g, is this really the only way to do this?
Actual use case
@vwegert , f . parent - , child - . child->f - , . child , g. g, parent->f.