...
Here are examples of good method names.
No Formatcode |
---|
computeSum() getX() setY() |
...
Here are examples of variable names.
No Formatcode |
---|
thetaIndex phiBins binValues |
...
For instance, this is a perfectly valid way of assigning a member variable that has the same name
as the method argument.
No Formatcode |
---|
void setFoo(int foo) { this.foo = foo; } |
...