Ansicht
Dokumentation
ABENINHERITANCE_ABEXA - INHERITANCE ABEXA
General Data in Customer Master Addresses (Business Address Services)This documentation is copyright by SAP AG.
- Inheritance
This example demonstrates how a counter is specialized using inheritance.
Source Code
Description
The class counter_ten is derived from counter and redefines the method increment. In counter, the visibility of the attribute count must be set from PRIVATE to PROTECTED. In the redefined method, the hidden method with the pseudo reference super-> is called. The redefined method specializes the inherited method.
An object of the subclass is created to which a reference variable of the superclass type points. When the method increment is executed using the superclass reference, the redefined method of the subclass is executed.
Fill RESBD Structure from EBP Component Structure BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 891 Date: 20240328 Time: 161006 sap01-206 ( 22 ms )