Sealed Classes
Sealed Classes are those classes that cannot be inherited by other classes. If we want to prevent a class to be inherited by other class then we make that class as Sealed Class. To create a class as sealed class, create the class using the keyword sealed.Syntax:-
[Access Modifier] sealed class classname
{
//Class
Body
}