# Memento: Movie Night, Then Back to Normal

When movie night saves each light's brightness itself, by reading the light's fields, then puts them back, it breaks the day the lights gain a color setting; a Memento lets each light make a snapshot of its own state and restore from it, while movie night only holds the snapshots.

![Cheat sheet: Memento: Movie Night, Then Back to Normal](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7fe39b1c68c144e4a9119b90ae389118.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: encapsulation, Memento Pattern, OOP
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-memento-cheat-sheet
