Get /set functions

I don’t understand them. Why are they necessary? I downloaded a class that uses them and I am wondering why? They are confusing hehe. Can anyone explain them :run: