Multiton pattern – made me chuckle.

by CarcaBot on July 23, 2009 · 0 comments

Not sure why I found it funny, but I did. Was reading Stack Overflow today and someone had asked a question about managing an object pool. One answer was, “use the Multiton pattern”.

Has a design pattern ever sounded more like a character from Pokemon?

Even though it has a comedy name it does have a legitimate use – whereas a Singleton holds once instance of an object a Multiton holds a specified number and thus creates an object pool. Wikipedia has an example.

Next post: