Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Instance Of Class Through Method Call Only?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Create Instance Of Class Through Method Call Only?
Divers
Thread ID:
01464302
Message ID:
01464302
Vues:
99
Is it possible to prevent a class from being instantiated from outside a class? Sort of like a factory pattern. I would like to change my
project so that new instances can only come through a method call.

How do I do this?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform