Anonymous user
Singleton: Difference between revisions
m
→{{header|Forth}}
No edit summary |
|||
Line 705:
\ Any number of instances of a singleton class may be
\ instantiated but they will all operate on the same shared data.
\ The data name space will remain private to objects of the class.
:class singleton
Line 726 ⟶ 727:
s2 printa \ => 4
</lang>
=={{header|Go}}==
|