Smalltalk expressions to call class methods and instance methods
Developing a Superset Language of Smalltalk for Modeling Mechanical Systems
Deyi Xue
Listing 2. Smalltalk expressions to call class methods and instance methods.
| c1 |
c1 := Cylinder initialize.
c1 assignRadius: 5.
c1 assignHeight: 20.
^c1 getVolume