11-30-2020 11:29 PM
What is singleton class ? what will be the real time example or scenario for singleton class related to OOABAP.
12-01-2020 1:01 AM
Single class is a class that can have only one instance. Such classes are declared private.
A real time example, a simulation of logon instance. Its almost like a static instance. But only one logon is allowed. Multiple scenarios can be searched up. These patterns are used extensively in models that use FPM.
Heres one blog, that will be help better understand : Singleton Patterns/WDP. Pl read the comments, they are pretty interesting.
12-01-2020 2:23 AM
Hi, I posted an answer about what is Singleton class and how to implement it.
You can check the answer here. https://answers.sap.com/questions/13192809/singleton-design-pattern-in-oo-abap.html?childToView=1319...
Hope it helps.
12-01-2020 6:52 AM