pattern
A template or model for implementing a solution to a common problem in object‑oriented programming or design. For example, the singleton design pattern restricts the instantiation of a class to only one object. The use of the singleton pattern prevents the proliferation of identical objects in a run-time environment and requires a programmer to manage access to the object in a multithreaded application.
Related terms