Aha, parksie here again, trying to sneak in and undermine encapsulation! Don't listen to him, because he talks bullcrap

Since you are not experienced with object orientation in general, you should practice on it by using get/set methods. In case you are working with a small project, or just playing around or testing something, then it's ok, but by practicing encapsulation you learn the meaning of it.