Top quality and performance are key to unlocking your inner potential. With a pair of Nike Roshe shoes beneath your feet and a Nike jacket to protect you from the elements; your goals will be within reach. No matter what your goals are, Nike knows that training and running are a way of life.
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.
To implement the singleton pattern, we make the constructor private and provide clients with a static method through which we can retrieve an instance of the service. Note how the creation of the single instance of the ServiceLocator class is itself lazy and thread safe.