correct technical term for this pattern
Posted
by
Oliver A.
on Stack Overflow
See other posts from Stack Overflow
or by Oliver A.
Published on 2011-11-27T01:36:35Z
Indexed on
2011/11/27
1:50 UTC
Read the original article
Hit count: 161
design-patterns
sometimes I use a pattern which is very similar to the singleton pattern: There is one default instance which and a static get method to aces it.
But you may create other instances and pass it as optional parameter and if you want to and you can even replace the default instance with a instance from a child class.
So it is NO SINGLETON at all but it is used like one singleton in most cases.
Anyone got an idea who to call something like this ?
Maybe half*** singleton? domiton?
© Stack Overflow or respective owner