Example: Equipment
Equipment
weight
cost
CompositeEq.
FloppyDisk
...
weight
| total |
total := 0.
self childrenDo: [:each | total := total + each weight].
^total
Previous slide
Next slide
Back to first slide
View graphic version