Navigation:  Tutorials > Beginners Guide to Smalltalk > Playing with Objects in the Playground >

Making them Jump

Previous pageReturn to chapter overviewNext page

Teresa, Simon and Charlie will also respond to a number of messages that ask them to perform operations. Try evaluating the following expressions with Ctrl+E:

simon radius: 80.

simon rotateBy: 10.

simon moveUp: 30.

charlie color: Color magenta.

charlie growBy: 20.

teresa position: 300@100.

teresa chooseColor.



       growBy: 15;

       moveBy: 10 @ 15;

       color: Color green.


Remember that the last example is a cascaded sequence of messages so you'll need to select all the lines at once to evaluate them simultaneously.