all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
13
Task/Singleton/Groovy/singleton-2.groovy
Normal file
13
Task/Singleton/Groovy/singleton-2.groovy
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class Singleton
|
||||
method print()
|
||||
write("Hi there.")
|
||||
end
|
||||
initially
|
||||
write("In constructor!")
|
||||
Singleton := create |self
|
||||
end
|
||||
|
||||
procedure main()
|
||||
Singleton().print()
|
||||
Singleton().print()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue