-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
I would like to propose adding a new chapter on Sealed Classes (introduced in Java 17) to the book.
Sealed classes are an important modern language feature that allow developers to explicitly control class hierarchies. Since this book already covers classes and object-oriented structure, sealed classes would be a good extension of that topic.
I suggest placing the chapter in:
Code Structure II
26. Classes
27. --> Sealed Classes
28. Instance Methods
An example outline for that chapter could be:
- Motivation
- Basic Syntax
- The permits clause
- final vs. sealed vs. non-sealed
- Sealed interfaces
If this proposal sounds reasonable, I would be happy to draft the chapter content, following the existing style and structure of the book.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels