Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

object abap

Former Member
0 Likes
489

there are 2 types of inheritance in OO multiple and hierarchy inhertiance

correct me if i am wrong

my question is WHICH IS SUPPORTED BY THE SAP

(whether it is MULTIPLE OR HIERARCHY)

1 ACCEPTED SOLUTION
Read only

alejandro_bindi
Active Contributor
0 Likes
473

Multiple inheritance (as in C++) is not supported in ABAP, only single inheritance (which I suppose you refer to by hierarchical).

Regards

2 REPLIES 2
Read only

alejandro_bindi
Active Contributor
0 Likes
474

Multiple inheritance (as in C++) is not supported in ABAP, only single inheritance (which I suppose you refer to by hierarchical).

Regards

Read only

varma_narayana
Active Contributor
0 Likes
473

HI Samuel.

In ABAP Objects We cannot have multiple inheritance. That means we cannot have more than one Super class for a subclass.

ABAP Objects support hierarchical inheritance . that means we Can derive a Subclass from which another Subclass can be derived.

<b>reward if Helpful</b>