Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's a Singleton?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01417218
Message ID:
01417224
Vues:
75
>>What's a Singleton? An example would be nice?
>
>Quick answer - you can find plenty of samples in google.
So why don't we just close down the UT and everyone can just Google what they need???



>
>The singleton is a class that can only have one instance. So, the Init of this class should return the reference of this class if it already exists and create a new instance if it doesn't.

Ahh, I see. Thanks!
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform