
Encapsulation is to make sure that "sensitive" data is hidden from users. To achieve this, you must:
declare class variables/attributes as private (only accessible within the same class)
provide public setter and getter methods to access and update the value of a private variable
In encapsulation, you never expose your data to an external party. Which makes your application...