Chapter 07 Cheatsheet
Questions
- Can canonical constructor and compact constructor exist at the same time?
Inteface implicit keywords
Interface itself
- public
- abstract
Interface variables
- public
- static
- final
Interface methods
Can be static or non-static
- public
- abstract
Sealed class
- All permitted subtypes of a sealed type must either belong to the same package or to the same module.
- Permitted subinterfaces of a sealed interface must be either sealed or non-sealed.