What is Differences between Singleton and static class

Static Class :

  1. Static class has no instance
  2. We can not implement interface.
  3. A static class can not have instance members, only static member it can have.

Singleton class :

  1. We have a single instance of class.
  2. you can implement interfaces or derive from other classes.
  3. A singleton class can have instance members,

Leave a comment