Singleton pattern
id:
singleton-pattern-161-15873110
title:
Singleton pattern
text:
In Object-oriented programming, the singleton pattern is a software design pattern that restricts the instantiation of a class to a singular instance. One of the well-known "Gang of Four" design patterns, which describes how to solve recurring problems in object-oriented software. The pattern is useful when exactly one object is needed to coordinate actions across a system. More specifically, the singleton pattern allows classes to:
- Ensure they only have one instance
- Provide easy access
brand slug:
wiki
category slug:
encyclopedia
description:
Design pattern in object-oriented software development
original url:
https://en.wikipedia.org/wiki/Singleton_pattern
date created:
2002-07-26T21:56:34Z
date modified:
2024-08-27T12:35:38Z
main entity:
{"identifier":"Q746699","url":"https://www.wikidata.org/entity/Q746699"}
image:
{"content_url":"https://upload.wikimedia.org/wikipedia/commons/f/fb/Singleton_UML_class_diagram.svg","width":500,"height":300}
fields total:
13
integrity:
16