April 2026
Intermediate
491 pages
18h 4m
English
Origin: Gang of Four—Creational Pattern
The singleton pattern is a creational pattern that originally comes the Gang of Four. This pattern is intended to ensure that only one instance of a type exists and also defines a public access point for that object.
In this example, a manufacturer of high-performance machine tools wants to enable its customers to use the machines it produces with as few faults as possible. During production operation, however, the mechanical load on all components can repeatedly cause problems that result in failures.
Some of these problems become apparent days or hours before the machine actually breaks down. If certain key figures deviate from normal operations, the manufacturer ...
Read now
Unlock full access