Skip to main content

One doc tagged with "encapsulation"

View all tags

Encapsulation

Hide internal state behind a controlled interface — access modifiers, getters/setters, and the art of designing immutable classes.