static

Edit on Github instead

static variables are attached to the class, rather than any object or instance of the class.

Any object can access, manipulate, or re-write a static variable's value, and then the variable's value changes for all objects in the class.

Suggest changes

Related links

URL Topic Source