home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Really Useful CD 1
/
ReallyUsefulCD1.iso
/
extras
/
languages
/
smalltalk
/
_smalltalk
/
tests
/
check
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-12-30
|
215 b
|
16 lines
Class CheckBook
| balance |
[
new
balance <- 0
|
+ amount
balance <- balance + amount.
^ balance
|
- amount
balance <- balance - amount.
^ balance
]