View Poll Results: Do you use setters and getters to attributes of a class within that class?
- 123. You may not vote on this poll
what are you talking about? xD
Results 1 to 25 of 93
Nov 1, 2005, 09:34 #1
- Join Date
- May 2003
- Berlin, Germany
- 0 Post(s)
- 0 Thread(s)
Do you use setters and getters within a class as well?
Just wondering whether you access the class's attributes within the class itself directly or via their getter methods, which are meant for the public.
The advantage would be less code (saving some brackets) and one would probably have special methods anyway if one needs the attributes in a special format.
How do you go about it?