Monday, 20 December 2010

What is Sealed Class?

The sealed keyword enables you to prevent the inheritance of a class or certain class members that were previously marked virtual.
A sealed class cannot be used as a base class. For this reason, it cannot also be an abstract class. Sealed classes prevent derivation. Because they can never be used as a base class, some run-time optimizations can make calling sealed class members slightly faster.

No comments:

Post a Comment