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:
01417229
Vues:
53
>>>>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???
>>
>
>Sorry, I was too busy with the CR -didn't have time for a better answer. But I see that Tim answered much better than me - I also forgot to mention that the constructor has to be private and I knew it!

No worries - Just giving you a hard time. :)



>
>>
>>
>>>
>>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform