What is Getter and Setter method in Java? How they can be used? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is Getter and Setter method in Java? How they can be used?

Please explain clearly and in details with some examples.

13th Jun 2018, 2:52 PM
Pradeep Anand
Pradeep Anand - avatar
2 Answers
+ 2
See the SoloLearn Java setters and getters lesson. https://www.sololearn.com/learn/Java/2154/
13th Jun 2018, 2:57 PM
Akash Pal
Akash Pal - avatar
0
https://stackoverflow.com/questions/2036970/how-do-getters-and-setters-work
13th Jun 2018, 2:54 PM
***
*** - avatar