We have moved our domain from sapnuts.com to zapnuts.com, please bookmark and share.

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.

Related questions