Hiding the data
Marking a field private means only code inside the same class can touch it — from outside, object.field is not allowed. Bundling data together with the methods that manage it, and hiding the raw fields, is called encapsulation. Outside code then goes through methods instead of poking fields directly.