🟢 Introduction to ABAP Object Oriented Patterns

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 2024
  • Source Code from this session: github.com/SAP-samples/abap-o...
    Contest Validation for this session: developers.sap.com/tutorials/...
    Although not a new topic in the #ABAP space, Object Oriented patterns continues to be a hotly requested topic. Therefore, we thought to start off the ABAP topic in #Devtoberfest with an interactive session on this very topic. We will look at some of the basics of object-oriented design in the ABAP language but also discuss some of the common design patterns that are most often used in ABAP. From the Factory pattern to dependency injection; we will look at different patterns implemented in ABAP.
    ===================================================================
    0:00 Introduction
    0:55 Devtoberfest Entry
    3:35 Devtoberfest Session Tutorials
    5:31 ABAP OO Introduction
    8:56 Basic Class
    14:03 Basic Class Test
    27:31 Static vs Instance
    31:39 Static vs Instance Test
    34:01 Factory Pattern
    37:35 Factory Test
    41:37 Singleton Pattern
    45:27 Singleton Test
    51:02 Composite Pattern
    1:00:33 Composite Test
    1:06:10 Q&A
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 11

  • @julionascimento8702
    @julionascimento8702 ปีที่แล้ว

    It's really very easy to understand! Thank you for your explanation!

  • @andreasrother428
    @andreasrother428 9 หลายเดือนก่อน

    Very well explained as always.

  • @cabronazo007
    @cabronazo007 ปีที่แล้ว

    The demo you give for what you call the "Composite Pattern" is, interestingly enough, a demo that explains perfectly why we would use the "Factory Pattern" = to be able to return different Class types depending on the initial creation values (something we cannot do with the traditional CONSTRUCTOR Method)......................

  • @tongobong1
    @tongobong1 3 หลายเดือนก่อน

    You showed an example of the Strategy pattern. The Composite pattern is a structural pattern. The purpose of Composite pattern is to compose a tree of related objects with parent and children relations. The base class of composite objects usually holds one parent object with the base class type and many child objects with the base class type.

  • @henk9453
    @henk9453 ปีที่แล้ว +2

    Great video, thanks!
    Can you please explain why to prefer composition over inheritance?

    • @sapdevs
      @sapdevs  ปีที่แล้ว +1

      I wouldn't say that you would prefer one over the other. In fact I don't see the comparison. Inheritance is a fundamental of OO and Composition is a pattern. In fact in order to make Composition pattern work you must use Inheritance. [Thomas Jung]

    • @baca0391
      @baca0391 ปีที่แล้ว +1

      @@sapdevs I think both are confusing the Composite pattern with composition, which is done via interfaces. Mateusz shared the best resource in ABAP for the composition vs inheritance discussion, which basically boils down to inheritance being difficult to design properly and makes logic hard to reuse outside of sub-classes.

    • @AdityaWaghmare
      @AdityaWaghmare ปีที่แล้ว

      @@baca0391
      So basically Interfaces >>> Inheritance

  • @memaddy1000
    @memaddy1000 10 หลายเดือนก่อน

    I am not too familiar with oops concepts but I have learned that abstract should atleast have one abstract method and these are no implementations of abstract methods in a abstract class, but in last example base abstract class was having only factory method which is not abstract method and also there is implementations of it in the same class

    • @tongobong1
      @tongobong1 3 หลายเดือนก่อน

      Yes he is clearly a newbie in OO.

  • @renan-ferreira
    @renan-ferreira ปีที่แล้ว

    Tks for the explanation! Great video