The singleton pattern ensures that an instance of a class is always a unique instance.
Addendum 5/6/2015: This old note is pretty confusing. Singleton conceptually means that no two instances of the thing will exist independently and therefore a singleton may act like a global variable.
No comments:
Post a Comment