Saturday, May 15, 2010

Difference between singleton and static classes

  • Singleton can be used with parameters to methods, but you cannot use static class as parameters.
  • Singleton can be used with interfaces
  • static class mainly use to hold gloabl data of application

Reference: http://dotnetperls.com/singleton-static

No comments: