Pictorial Representation of Multiple Inheritance in SAP ABAP
Interface A Method MET_A Interface B Method MET_B
Class X (Definition) Interface A Interface B A Class X(Implementation) Methods: A~MET_A B~MET_B
Class Y (Definition) Interface A Interface B
Class Y (Implementation) Methods: A~MET_A B~MET_B
Class Main (Definition) Class Methods : Met1 importing IM1 type ref to A Met2 importing IM2 type ref to B
Class Main (Implementation) Method Met1. IM1->MET_A(). Endmethod. Method Met2. IM2->MET_B(). Endmethod.
Start of selection. Data : lobj1 type ref to X, lobj2 type ref to Y. Create object : lobj1, lobj2. MAIN=>Met1(lobj1). MAIN=>Met2(lobj2).
By Debesh
Page 1