Introduction
We change an object's state to update its information or behavior as the program runs.
When you want to update a person's age after their birthday.
When you need to change the speed of a car in a game.
When tracking the score in a quiz app and updating it after each question.
When toggling a light on or off in a smart home system.