Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventng direct creation of sub-class instances
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01141060
Message ID:
01141078
Views:
14
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform