Ansicht
Dokumentation

ABENINHERITANCE_NAME_SPACE - INHERITANCE NAME SPACE

ABENINHERITANCE_NAME_SPACE - INHERITANCE NAME SPACE

PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- Inheritance and the Component Namespace

A subclass contains all components of all its superclasses. Only the public and the protected components are visible. This is why all public and protected components of a path of an inheritance tree are located in a single namespace and must have unique names. Private components, on the other hand, must have unique names within a class.

When methods are redefined, the newly implemented method hides the identically named method of the superclass. As soon as the method is redefined, it replaces the old method to ensure that the name remains unique. The pseudo reference super-> can be used in subclasses to access a method of the direct superclass hidden by a redefinition.






Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 1032 Date: 20240425 Time: 102523     sap01-206 ( 27 ms )