Hello Friends,
In this session, we are going to see how two classes can access private and protected components of each other.
What is the use of Friend class in SAP ABAP OOPS programming?
If you want to access the private and protected components of another class then we have concepts of friend class in OOPS ABAP.
ABAP OOPS class Friendship is one-sided.
That means if a class cls2 is defined with Friends of cls1 then cls1 can access all of the protected and private components of cls2 but not vice versa. If cls2 wants to access all components of cls1 then cls1 will have to be defined by Friends of cls2
How to define and declared Friends class in SAP ABAP?
I have already created a video on the friend class please click on the below link
• Friends class in SAP A...
Click on the below link to read the blog on our website related to Class friendship you may copy the code for practice purposes only.
www.learnsapab...
Click on the link below Playlist to watch ---
All videos related to sap ABAP object-oriented programming.
• SAP ABAP OOPS
All Videos related to Module Pool Programming.
• Module Pool Programming
All videos related to Kernel Badi in sap ABAP
• Kernel Badi in ABAP
All Videos related to CDS View on Hana.
• CDS View on HANA
Please visit my website to learn more about ABAP.
www.learnsapab...
Please connect us on the telegram channel.
t.me/learnsapabap
Thanks,
#LearnSapAbap
Instagram : @swap_neeeel
Негізгі бет Friend class in SAP ABAP OOPS | How classes can access private components of each other | Opps ABAP.
Пікірлер: 1