[Mono-devel-list] swf.Application constructor
Asier Llano Palacios
asierllano at infonegocio.com
Mon Sep 22 12:43:10 EDT 2003
> >> Is it a bug in Winchurn?
> >> Is it a bug in the complier?
> >> Is it a bug in my brain?
> >It is a missing feature in the C# language. A mechanism of saying `this
> >class should not be instantiated'. [snip]
> Isn't that what the 'abstract' keyword is for?
No, because you may want to have a sealed class that you
don't want to inherit nor instantiate. (Maybe because
the only methods you implement are static). So you
can use a 'sealed' class with a 'private' constructor.
You are not able to use a 'abstract' and 'sealed' class.
For class that you want to be inherited, and instantiate
the inheriting classes, but not the main one, you could
More information about the Mono-devel-list