1.

What Is The Difference Between Singleton And Static Class In Sap Abap ?

Answer»

Before going to static classes, you should understand static COMPONENTS.

  • Static Components: Static components (static attributes, static events and static methods) exists GLOBALLY, no need to create object/INSTANCE of the class to access them, we can access them by using static component selector => .
  • Static Class: A class that only CONTAINS static components and no instance components is REFERRED to as a static class.
  • Singleton Class: It is a class which does not allow you to create multiple instances.

Before going to static classes, you should understand static components.



Discussion

No Comment Found