Welcome to SAP Central
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Creating multilevel inheritance in ABAP Objects

Go down

Creating multilevel inheritance in ABAP Objects Empty Creating multilevel inheritance in ABAP Objects

Post  Uma_ABAP Sun Apr 01, 2012 12:58 pm


Multilevel inheritance can be better explained as grandfather-> father->child type of
inheritance ,where the sub class inherits the property of the superclass ,as well as it has
some property of its own . Multilevel inheritance can be created like normal inheritance.


for example father inheriting from grandfather and further the child from father. Lets take an example.

CLASS grand_father DEFINITION.
******/ write the code*****
ENDCLASS.
CLASS father DEFINITION INHERITING FROM grand_father.
*******/write the code*********
ENDCLASS.
CLASS son DEFINITION INHERITING FROM father.
*******/write the code ********
ENDCLASS.


Uma_ABAP

Posts : 56
Join date : 2012-03-31

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum