static_field_method.htm |
Static field variables and Static members of a class. |
A static method can only have static member variable |
now if you look at and compare "t.method_2()" it was not required for a static class. The red boxes the changes, where player_no was set as a static field, and used by a static member method in the same class. Also see Link |
the static field player no is updated or changed |