Classes: Difference between revisions
→{{header|EMal}}
No edit summary |
|||
Line 1,212:
=={{header|EMal}}==
<syntaxhighlight lang="emal">
type Bear ^| the
| here we are in the static context
|^
Line 1,218:
text name # instance variable
^|
| in EMal the instance
| variadic constructor is provided by the runtime.
| Every value passed to the constructor sets the instance variable
| according to the order.
|^
fun makeNoise = void by block # method of Bear
|