Jump to content

9.5.1 Creational (Singleton, Factory): Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

10 July 2025

  • curprev 02:5602:56, 10 July 2025 Mr. Goldstein talk contribs 1,252 bytes +1,252 Created page with "=== 9.5.1 Creational (Singleton, Factory) === Creational design patterns are all about how objects are created. They help make sure objects are created in a flexible and organized way. * '''Singleton:''' Imagine you have a school, and there's only ''one'' principal. It wouldn't make sense to have two principals, right? A Singleton pattern ensures that a class can only have ''one'' instance (one copy) of itself throughout the entire program. This is useful when you need..." Tag: Visual edit