Singleton: Difference between revisions
Content added Content deleted
Line 761: | Line 761: | ||
\ allocation words such as value or variable as instance variables. |
\ allocation words such as value or variable as instance variables. |
||
\ Any number of instances of a singleton class may be |
\ Any number of instances of a singleton class may be |
||
\ instantiated but |
\ instantiated but messages will all operate on the same shared data |
||
\ so it is the same as if only one object has been created. |
|||
\ The data name space will remain private to |
\ The data name space will remain private to the class. |
||
:class singleton |
:class singleton |