‎2022 Feb 27 10:02 AM
Hi folks,
I am new here and want to learn oops ABAP. Basically I know all the basic concept of OOPS in other language like C++ and JAVA but i am not able to find a proper tutorial or a way to go through in YouTube and other platforms. Can anyone recommend any course of way to learn OOPS in ABAP.
Thanks in Advance.
‎2022 Feb 27 2:20 PM
Why would it be different in ABAP. If you know OO, you just need the syntax in ABAP and I don't see anything complex to learn. Even ABAP documentation should give you the syntax.
CLASS myclass DEFINITION.
PUBLIC SECTION.
METHODS mymethod.
CLASS myclass IMPLEMENTATION.
METHOD mymethod.
object->attribute
object->method( parameter )
etc.
‎2022 Feb 28 5:37 AM
sandra.rossi you high light the main difference, in ABAP you have to DEFINE & to IMPLEMENT a class. 😉
‎2022 Feb 28 7:44 AM
frdric.girod ABAP is like C on this aspect, if I remember well.
‎2022 Feb 28 9:05 AM
I don't think :
(and as Sandra could say, it is C++ not C !! 😉 )
‎2022 Feb 28 2:51 PM