What is the point of extending a sealed class with a non-sealed class?
Because in real-world APIs, sometimes we want to support specific extension points while restricting others. The Shape examples are not particularly evocative, though, which is why it might seem an odd thing to allow. Sealed classes are about having finer control over who can extend a given extensible type. There are several reasons you might … Read more