public void move(int boost)
{
if(isVisible)
{
y += boost;
}
}
testing for a boolean instead of its opposite is generally clearer code, and this doesn't require an extra return statement.Why doesn't it accept this for the move() method?
New
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet