Sealed classes enforce strict control over class hierarchies.
Sealed classes introduce a design constraint by explicitly defining which subclasses are allowed. This can simplify maintenance and improve security by preventing unauthorized extensions. In an e-commerce system, you might use a sealed class for `User` types to ensure only predefined roles like `Admin`, `Customer`, or `Guest` exist, preventing unauthorized role creation.