You can declare a class as a sealed class. The method is to include keywords in the class definition.SealedPlace in keywordsClass. For example:
Public sealed Class D
{
// Class members here.
}
the sealing class cannot be used as the base class. Therefore, it cannot be an abstract class. The seal class is mainly used to prevent derivation. Since the seal class is never used as the base class, some runtime optimization can make the call to the seal class members slightly faster.
the class member, method, field, attribute, or event on the derived class that overwrites the Virtual Member of the base class can be declared as a seal member. When used in a later derived class, this will cancel the virtual effect of the member. The method is to sealed keyword placement override before the keyword. Example:
Public Class D: c
{
Public sealed override void dowork (){}
}