SAP INHERITANCE REDEFINITION
Get Example source ABAP code based on a different SAP table
ARTICLE
Redefining Methods
Each subclass contains the components of all classes that are located between this class and the root node in the inheritance tree. The visibility of a component is always the same and cannot be changed. However, it is possible to redefine the public and protected instance methods of all preceding superclasses using the
The method declaration remains with the superclass, and its previous implementation is also persisted there. The implementation of the redefinition is generated additionally with the subclass and obscures the implementation of the superclass. A redefined method works with the private attributes of the subclass and not with possible private superclass attributes of the same name.
Each reference that points to a subclass object uses the redefined method, even if it was typed with reference to a superclass. In p articular, this also applies to the
Within a redefined method,