Methods and attribute
I wanted to know... I have an attribut for my construtor called :
I do not need to access it anywhere else, only in my class.
So I wanted to know... I don't need to make a method get to get it right?
I can just do something like that :
if only your class will be accessing it, you can either use it directly, or you can create a private getter and setter. the choice is up to you. you do not need to make public accessors.