CS301 Problem Set 7

This assignment is worth 20 points


The purpose of this assignment is to get you programming in uSmalltalk and to force you to carefully think about object-orientaton.

Your assignment is to read R&K Chapter 9.4 and 9.5, and do exercises 9.13.

Procedures

The interpreter for uSmalltalk is usmall, found in the usual place.

Requirements

Name your source files ex9n.smt, where n is the exercise number. Supply test cases for exercises that print <True> in case of success.

Helpful hints

Since methods are not values, you can't find out anything about them by typing their names to the interpreter. The way to find out things is to use protocol, localProtocol, isMemberOf, and isKindOf.


Adapted from Penny Anderson.