12 lines
168 B
Plaintext
12 lines
168 B
Plaintext
object pepita {
|
|
var energy = 100
|
|
|
|
method energy() = energy
|
|
|
|
method fly(kilometers) {
|
|
energy -= kilometers + 10
|
|
}
|
|
|
|
method sayHi() = "Coo!"
|
|
}
|