When to use static methods
One rule-of-thumb: ask yourself “Does it make sense to call this method, even if no object has been constructed yet?” If so, it should definitely be static. So in a class Car you might have a method: …which would be static, because one might want to know what 35mpg converts to, even if nobody has ever built … Read more