Multiton pattern: Difference between revisions

Content deleted Content added
m Implementations: added keyword "readonly" to Dictionary of instances in C# example
m top: plain image for readablity of SVG
Line 1:
[[{{Plain image with caption|Image:Multiton.svg|thumb|right|UML diagram of the multiton]]}}
In [[software engineering]], the '''multiton pattern''' is a [[design pattern (computer science)|design pattern]] similar to the [[singleton pattern|singleton]], which allows only one instance of a class to be created. The multiton pattern expands on the singleton concept to manage a [[associative array|map]] of named instances as key-value pairs.