Constructor Inheritance In SAP ABAP | Inherit Constructor in ABAP | ABAP Inheritance constructor.
LearnSapAbap LearnSapAbap
5.06K subscribers
2,140 views
26

 Published On Feb 21, 2021

How friends,

In this video we are going to see how Sub Class Inherits Constructor of Super Class in SAP ABAP.

Inheritance of constructor in sap abap.
Constructor of Super class is Inherited by its Sub classes. Hence super class needs not to be instantiated in the data processing to fetch the functionality of the constructor. We have derived a program where we have defined a parent class and a constructor in the public section. Then we implement that constructor in the implementation portion. Next we define child class inheriting from parent class. Now in the start of selection when we create the object of child class then the constructor method is called automatically and we get the functionality implemented in that constructor. Hence we are not creating any object for the parent class but we can get its constructor. Here we are getting the constructor of super class by creating the object of sub class.

Please click on below link to find video from playlist related to OOPS ABAP
   • Constructor in sap abap | SAP ABAP Co...  

Read Article on constructor inheritance in sap abap.
https://www.learnsapabap.com/2018/01/....

Please refer and share this website to learn ABAP : https://www.learnsapabap.com

#Constructor
#Inheritance

Thanks,
#LearnSapAbap

show more

Share/Embed