I can't understand the use of getter and setters?
Firstly we are making a variable private so that no one can access it and than using getters and setters to give its access to everyone why is it so ?? If we want to access it than why we don't make it public why we are making it private and using getters and setters??