Joe Soltzberg

21%
Flag icon
Because the data fields of such classes are accessed directly, these classes do not offer the benefits of encapsulation (Item 15). You can’t change the representation without changing the API, you can’t enforce invariants, and you can’t take auxiliary action when a field is accessed.
Effective Java
Rate this book
Clear rating
Open Preview