New course! Every coder should learn Generative AI!
Try a free lesson+ 2
What are getters and setters??
3 Answers
+ 4
It allows encapsulation to protect data. You use get/set to access the members of it.
+ 2
No problem. Hope that helped some.
+ 1
thanks Netkos Ent