Application Development 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: 

Multilevel inheritance

Former Member
0 Kudos

Hi Gurus,

Did ABAP OOPS allows multi level inheritance?

2 REPLIES 2

Former Member
0 Kudos

HI

Multileve Inheritance is possible in OOABAP.

Regards,

Former Member
0 Kudos

Hai Reddy,

A single class can give birth to its subclasses by inheritance.

One parent class can have multiple subclasses, but one subclass can have only one parent class.

Hence multiple inheritance is not allowed in ABAP.

Subclasses have full access to all the public and protected components of parent class.

They can modify to re-implement those components of their own.

Also, subclasses can create new components in them.

Private components of parent classes are not known to subclasses.

There can be components with same name in private section in both the parent and subclasses , each one working and being identified separately in their respective classes.

Regards.

Eshwar.