What is the purpose of accessors?

Viewed 19233

Can somebody help me understand the get & set?
Why are they needed? I can just make a public variable.

6 Answers
Related