Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1 +1,2 @@
|
|||
A Global Singleton is a class of which only one instance exists within a program. Any attempt to use non-static members of the class involves performing operations on this one instance.
|
||||
A Global Singleton is a class of which only one instance exists within a program.
|
||||
Any attempt to use non-static members of the class involves performing operations on this one instance.
|
||||
|
|
|
|||
4
Task/Singleton/Smalltalk/singleton.st
Normal file
4
Task/Singleton/Smalltalk/singleton.st
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
SomeClass class>>sharedInstance
|
||||
|
||||
SharedInstance ifNil: [SharedInstance := self basicNew initialize].
|
||||
^ SharedInstance
|
||||
Loading…
Add table
Add a link
Reference in a new issue