Classes: Difference between revisions

No edit summary
Line 1,212:
=={{header|EMal}}==
<syntaxhighlight lang="emal">
type Bear ^| the Typetype system is informed about athe new type,
| here we are in the static context
|^
Line 1,218:
text name # instance variable
^|
| in EMal the instance variablevariables are ordered, and a default
| 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
226

edits