ABAP OO Part 2 - Static vs. Instance

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 7

  • @Montana1989Tony
    @Montana1989Tony 3 роки тому

    Great video, thank you!

  • @priygupta9273
    @priygupta9273 3 місяці тому

    @sapdevs what is the significant of ! symbol before the parameter name in methods

    • @sapdevs
      @sapdevs  3 місяці тому +1

      That's an escape character to tell the compile that this is not a keyword. It's added automatically by some of the class tooling.

  • @SHAILESH506
    @SHAILESH506 Рік тому

    Do we create as many instances in real life?
    Which approch would be better?

  • @ss-de5mm
    @ss-de5mm 3 роки тому

    Please make some videos on sap Idocs

  • @AnujKaithwas
    @AnujKaithwas Рік тому

    Don't we have a static constructor that would do the same as an "instance" constructor does?

    • @sapdevs
      @sapdevs  Рік тому

      Yes, there are static and instance constructors but there are significant differences in the two. From parameters allowed, to timing of triggering, etc. Here is a good document that describes the differences: help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abenconstructor.htm#:~:text=of%20Classes%20%E2%86%92-,Constructors%20of%20Classes,VALUE%20of%20the%20statement%20DATA.