# Singleton: Only One, Ever

When two parts of an app each make their own copy of something the whole app should share, such as the shop's settings, they quietly disagree; the Singleton pattern makes a class allow only one object and gives everyone the same one.

![Cheat sheet: Singleton: Only One, Ever](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/99711953282348e4a22cb8e54634b80f.webp)

- Category: Data Structures
- Level: Apprentice
- Tags: Global State, OOP, Singleton Pattern
- Author: Gregor Dzierzon
- Updated: November 17, 2026

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