What is sealed class in C#?

Technology CommunityCategory: C#What is sealed class in C#?
VietMX Staff asked 3 years ago

Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as a sealed class, the class cannot be inherited.

Structs are also sealed. You cannot derive a class from a struct.