Creating multilevel inheritance in ABAP Objects

Go down

Creating multilevel inheritance in ABAP Objects

Post  Uma_ABAP on 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