AP® Computer Science A glossary

State (of an object)

Also called: object state

Course: AP® Computer Science A Shows up in: Unit 3: Class Creation

An object's attributes and their values at a given time, stored in the object's instance variables.

Appears in the course and exam description (CED): 3.4.A.1

State defines a has-a relationship: a player has a name and has a score. The constructor sets the initial state, and mutator methods change it over time.

Learn it properly, with a checkpoint 3.4 Constructors

Related terms

Was this page helpful?

No names are ever shown, and every public comment is checked by us first. Please do not include personal details. To get a reply, email [email protected].

↑ Top

Enlarged view of the selected figure