0% found this document useful (0 votes)
67 views1 page

Multiple Inheritance

Multiple Inheritance in SAP ABAP

Uploaded by

Debesh Swain
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views1 page

Multiple Inheritance

Multiple Inheritance in SAP ABAP

Uploaded by

Debesh Swain
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like