Navigation:  Appendix A: Jumping Into Smalltalk >

Cascades

Previous pageReturn to chapter overviewNext page

Smalltalk uses a semicolon (;) to separate multiple messages sent to the same object.

Java

Smalltalk

<no equivalent>

myAccount
deposit: 20;
transfer: 20 to: anotherAccount