Please enable JavaScript to use CodeHS

CodeHS Glossary


State Java

The state of an object is all of its associated data. It is the *state* that the object is in. For example, if a Rectangle object has a `width` of 4, and a `height` of 10, that would be the object's state. The state of an object is the state of its instance variables.