Chapter 7 — Beyond Classes
Covers interfaces (default, static, private methods), functional interfaces, enums with fields/constructors, records, sealed classes, and nested classes — all featuring heavily in the OCP Java 21 exam with Java 21-specific additions like pattern matching and exhaustive switch.