Singleton Class
Overview
- Application Wide Functionality
- It has Private Constructor to Initialize Object
- Option to Create New Object Every time application is run or Lazy Load Object when it is called
How it Different From Static Class?
- Single Ton Class is Object base so it contains all Functionality of object class like Constructor, Destructor, Inheritance. This functionality is not available in case of Static class.
- Singleton Class is Reference type and Static class is value type
- Single Class Require object Initialization, we can use Static methods without Creating Any object.