Get Example source ABAP code based on a different SAP table
ABAP_OBJ - Inheritance and Nested Interfaces in ABAP Release 4.6A In ABAP_99A the following components are added to the core ABAP Objects functions: ITOC
ABAP_MODIFICATION_NN Inheritance>
ABAP Objects enables inheritance>>. The addition INHERITING FROM> of the statement CLASS class DEFINITION>> can be used to derive a class from a superclass. Each subclass inherits all components from all superclasses and enables specialization by adding its own components and by using the REDEFINITION>> of previous methods. This makes it possible to define inheritance trees that become more and more specific from subclass to subclass, starting from the root node OBJECT>. The additions ABSTRACT> and FINAL> of the statements CLASS>> and METHODS>> make it possible to define abstract and final classes and methods. Abstract classes cannot be instantiated. Abstract methods are not implemented in their class and can occur only in abstract classes. Abstract methods can be implemented in a subclass of the abstract class. Final classes cannot have any subclasses. Final methods cannot be redefined. All methods of final classes are automatically final.
ABAP_MODIFICATION_NN Nested Interfaces>
Interfaces can be nested> by specifying other interfaces as components in the definition of an interface: INTERFACE i.>> ... INTERFACES: i1, i2 ...>> ... ENDINTERFACE.>>