private constructor, subclassing and sealed

c#, constructor, sealed, subclass

Solution

Because you might want to have public constructors but not allow anyone to derive from your class

Problem

If one can prevent subclassing by declaring private constructor in the base class, why do we need "sealed" keyword? Is it so because CLI can optimize it better? maybe. Thanks.

Original source