Update animal.sm
This commit is contained in:
parent
87b3e1eaa8
commit
7d1d18e2e2
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@
|
|||
&& '++name declares an abstract class
|
||||
&& all of that is, of course, a statement so ¡!
|
||||
|
||||
'++animal (
|
||||
|
||||
&<='++animal (
|
||||
&& +}}type{{ declares a property of a class
|
||||
&& "+}}type{{ declares a static property of a class
|
||||
|
||||
|
@ -14,7 +15,7 @@
|
|||
¡<=/"Created animal named " + name\!;
|
||||
|
||||
&& +var refers to a property, like this. in other languages
|
||||
&& you can only assign values to static variables once in this language
|
||||
&& you can only assign values to static variables once in this language
|
||||
¡+name < name!;
|
||||
¡+speed < speed!;
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue