Posts

Showing posts with the label Inheritance

OOPS ABAP: Inheritance with Example

Inheritance: Creating Sub classes or child classes from parent class.                             or                    Deriving the new classes from existing classes. Note: Multiple inheritance is not possible in ABAP, but we can achieve with the help of Interfaces. Example: In the below example we are creating the subclass1 for class1 so that we can call the methods of class1 using Subclass1 *&---------------------------------------------------------------------* *& Report ZVB_INH_CLS *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT  zvb_inh_cls . TYPES :  BEGIN  OF  ty_vbak ,    ...