Introduction
Attributes store information about an object. Accessing and changing them lets you see or update that information.
You want to check the details of a person stored in a program.
You need to update the score of a player in a game.
You want to change the color of a shape on the screen.
You want to read or change settings saved in an object.