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:
01417227
Vues:
70
>>>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!

>
>
>>
>>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!
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform