Tag: java-core
All the articles with the tag "java-core".
-
Part 3: Encapsulation — Protecting Your Data
Encapsulation in Java, step by step: access modifiers, why fields start private, getters and setters, and when a domain method beats a setter.
All the articles with the tag "java-core".
Encapsulation in Java, step by step: access modifiers, why fields start private, getters and setters, and when a domain method beats a setter.