Java Advance

Applying encapsulation principles to a class