Question about classes

I’ve just started writing my first class and I have a question. Let’s say I have a public property in the class called “UserID” and I want to refer to that property from within the class itself. I know I “can” just use UserID to reference it but shouldn’t I be using self.userID? Is either accepted or is one preferred and better?


no need to use self inside the class (for public/private or protected attributes), unless you want to make sure YOU know that you are referring to such… and to keep it away from external attributes that may have the same name

Many thanks!

dang… not too many letters different between our names are there?