![]() |
subject > pattern > design pattern > singleton |
![]() ![]() | ||||||||||
singleton comparison table |
Subject | is a kind of | is a subtopic of | have example | is an instance of | have problem | have context | has definition | have solution | have forces | have references |
---|---|---|---|---|---|---|---|---|---|---|
design pattern | pattern | 6.1 - Introduction to Patterns | a sentence or two explaining the main difficulty being tackled | a context | A pattern useful for the design of software | one or more forces | one or more references which indicate who developed or inspired a pattern | |||
singleton | 6.5 - The Singleton Pattern | the Company or University classes in systems that run the business of that company or university | design pattern | How do you ensure that it is never possible to create more than one instance of a singleton class? | A pattern that ensures that a certain class can have only one instance | In a singleton class, create the following:
| one of the Gang of Four patterns. |
Next design pattern: abstraction-occurrence Up: design pattern Previous design pattern: related pattern