Robert

48%
Flag icon
Constant-specific class bodies are still the way to go if an enum type has constant-specific behavior that is difficult to understand, that can’t be implemented in a few lines, or that requires access to instance fields or methods.
Robert
Instance fields in an enum seems wrong. Is it actually — why or why not?
Effective Java
Rate this book
Clear rating
Open Preview