Skip to content
Author: ytianle

Singeleton⚓︎

"Only one instance of the class should exist. I want a global access point to it."

Character: - single instance - global access point - control instantiation

eg: game settings manager - only one settings manager throughout the game - global access to settings from any part of the game - control instantiation to prevent multiple settings managers

eg2: - logger - configuration manager - thread pool manager - database connection pool -cache manager

picture 0