In C, a sealed class is not a feature of the language. However, sealed classes are a feature of C# . In C#, a sealed class is a class that cannot be inherited by any other class. Once a class is defined as a sealed class, it cannot be inherited. The keyword "sealed" is used to create a sealed class in C# . Sealed classes restrict the inheritance feature of object-oriented programming. Sealed classes are used to prevent inheritance, and the methods in the sealed class cannot be manipulated from other classes. Sealed methods or properties cannot be overridden by derived classes. The main purpose of a sealed class is to withdraw the inheritance attribute from the user so that they can’t attain a class from a sealed class.