English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

The singleton is a design pattern, and it means that there is one and only one copy of an object at runtime.

In c# this can be accomplished by using a static constructor, but the classic way to do it is using a reference-count (e.g. if the object has not been created then create it, but if it has already been created, then reuse it).

2007-03-12 07:53:27 · answer #1 · answered by fixedinseattle 4 · 1 0

A Singleton class is one that allows only one instance of it to be created in the lifetime of an application.

For more info check
http://aspalliance.com/810_Implementing_a_Singleton_Pattern_in_C

2007-03-13 12:53:11 · answer #2 · answered by Smutty 6 · 0 0

singleton object is an alternative approach to session object that groups related items and objects.

2007-03-13 05:31:27 · answer #3 · answered by vp 1 · 0 0

fedest.com, questions and answers