+ 1
I can't understand
2 Respuestas
+ 11
/*since we know that private instance members are not accessible outside the class , but setters & getters are available inside the class [so they can access them] ... so to access them from outside of class , we make a call to getter or setter from outside of class*/
//for more understanding
see Hatsy's answer & then Martin's answer
https://www.sololearn.com/Discuss/1139538/?ref=app
+ 3
What cannot you understand ???
Setter methods are used to assign/change values of member variables.
Getter methods are used to get that value.