+ 2

What are getters and setters??

18th Aug 2017, 1:56 PM
Kartikey Gupta
Kartikey Gupta - avatar
3 ответов
+ 4
It allows encapsulation to protect data. You use get/set to access the members of it.
18th Aug 2017, 1:58 PM
AgentSmith
+ 2
No problem. Hope that helped some.
18th Aug 2017, 2:18 PM
AgentSmith
+ 1
thanks Netkos Ent
18th Aug 2017, 2:08 PM
Kartikey Gupta
Kartikey Gupta - avatar