AP® Computer Science A glossary

Attribute

Also called: field, property

Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods

Data related to a class, stored in variables, such as a plant's name and height.

Appears in the course and exam description (CED): 1.7.A.2

Attributes are the nouns of a class: the data each object stores. Behaviors (methods) can report or change them. Unit 3 adds the term instance variable.

Learn it properly, with a checkpoint 1.7 Application Program Interface (API) and Libraries

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