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.
Great video, thank you!
@sapdevs what is the significant of ! symbol before the parameter name in methods
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.
Do we create as many instances in real life?
Which approch would be better?
Please make some videos on sap Idocs
Don't we have a static constructor that would do the same as an "instance" constructor does?
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.