While going through the Cattle Drive we are reminded to declare our variables as close as possible to where they are used. In the infamous �Say� assignment, I defined the variables �onebillion and �onemillion� to represent their respective numeric values. It would be easier than counting all the zeros. Pauline suggested that I define them at the Class level instead of just before I used them. I was confused because I thought this went against the style guide. After further reading, the following may clarify when to define a variable at the Class level and when to define it locally.
Static class variables represents class-wide information. In certain cases, one copy of a particular variable should be shared by all objects of a class. Since oneBillion, oneMillion and will never change, its best to declare it as static at the class level. This may not be that important in this assignment, but it will certainly be important as multiple objects will be instantiated from a single class in future programs.