Getters and setters are inbuilt methods of java ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Getters and setters are inbuilt methods of java ?

we have to define getrers and setters for our program . we can even achive the same with any other self defined method , then what is the need of getters and setters?

13th May 2018, 5:38 AM
himani
2 Answers
+ 1
then in there place I can use any other method?
13th May 2018, 5:54 AM
himani
+ 1
Ok, thanks:)
13th May 2018, 5:57 AM
himani