Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
alice.age represents an attribute called "age" belonging to an object named "alice". It stores and retrieves the age value associated with the specific instance of the object.
Related terms
Attribute: An attribute is a characteristic or property associated with an object that defines its state or behavior.
An object is an instance of a class that encapsulates data (attributes) and methods (actions) related to that particular type of object.
Instance: An instance refers to a specific occurrence or realization of an object. It represents one unique copy of that class with its own set of values for attributes.