Use Cases

Explore the sealed classes and interfaces to create restricted hierarchies and improve code readability.

Sealed classes for restricted hierarchies

We use sealed classes whenever we want to express that there is a concrete number of subclasses of a class.

Get hands-on with 1200+ tech skills courses.