SAP INHERITANCE NAME SPACE



Get Example source ABAP code based on a different SAP table
  



ABAP_OBJ - 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.