Sudheer Kumar
Difference between singleton vs static?
By Sudheer Kumar in C# on Oct 24 2013
  • Sunil Gaded
    Aug, 2014 28

    Singleton class--- only one time we need to create the object and access throughout globally static class---not possible to create the object

    • 0
  • Sudheer Kumar
    Oct, 2013 24

    1. Singleton objectstores in Heap but, static objectstores in stack
    2. We can clone the object of Singletonbut, we can not clone the static class object
    3. Singleton classfollow the OOP(objectoriented principles) but not static class
    4. we can implement interface with Singleton class butnot with Static class.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS