Instance variables are declared private to prevent direct modification. Access to the variables is instead provided through methods. This practice is known as..
c. encapsulation. It is a mechanism of bundling the data (variables) and code acting on the data (methods) together as one.