Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventng direct creation of sub-class instances
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01141060
Message ID:
01141078
Vues:
22
Hi,
Thx, but I'm afraid it has the same problem (in fact my real BaseClass was abstract any way)

>try this,
>
>
>public abstract class BaseClass
>{
>    public BaseClass()
>    {
>    }
>}
>
Update: Sorry, not same problem. Rather same result as Cetin's suggestion : doesn't prevent instance being created ( I think the base constructor has to be private)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform