init wollok
This commit is contained in:
9
example.wlk
Normal file
9
example.wlk
Normal file
@@ -0,0 +1,9 @@
|
||||
object pepita {
|
||||
var energy = 100
|
||||
|
||||
method energy() = energy
|
||||
|
||||
method fly(minutes) {
|
||||
energy = energy - minutes * 3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user