Java · Writing classes

static fields and methods

Some facts belong to no single egg, such as how many eggs exist, and a class needs one place to keep them.