Navigation:  Appendix A: Jumping Into Smalltalk >

Statements

Previous pageReturn to chapter overviewNext page

Smalltalk uses a period (.) as a statement separator. You don't need a period on the last statement.

Java

Smalltalk

myAccount.deposit(20);
myAccount.transfer(20, anotherAccount);

myAccount deposit: 20.
myAccount transfer: 20 to: anotherAccount