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

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.