1 Sealed classes limit which classes can extend them, generalizing finality by allowing only explicitly named subtypes.
“a sealed class limits what other classes can extend it it's kind of a generalization of finality a final class is one that can't have any subtypes a sealed class is one that can't have any subtypes except for the ones you name”