0
Getters and Setters are use to encapsulate the data. We don't want to access directly to our variables so we declare them as private so when we want to change them we use methods like set or to get the value of that variable we use getter.these getters and setters are also used as model classes in MVC as data manipulation. https://code.sololearn.com/cdBYZA5XeT9X/#java
13th Apr 2017, 10:57 PM
( ͥ° ͜ʖ ͥ°)