Question
Suppose there is a private variable in a public class called private int _xTouchDown = 0;
What would be appropriate for the getter/setter name for this private variable?
a. get_xTouchDown()
for the getter and set_xTouchDown()
for the setter. These are the default chosen by Eclipse > Refactor > Encapsulate Field.
b. getXTouchDown()
for the getter and setXTouchDown()
for the setter.
c. xTouchDown()
for the getter and setXTouchDown()
for the setter.
d. Other.