Java Professional — Hard
Key points
- `sealed` interface controls which classes can be subtypes
- `non-sealed` allows specific subtypes to be extended by any class
- This combination balances hierarchy control with open extension
Ready to go further?
Related questions
