Homework 3

22C:22 Object-oriented Software Development
Due Friday, February 9, 2007

15 points


  1. Do Exercise 5.1 on page 204 of the textbook, with the following additions/modifications:
NOTE: It is important that you design these classes well, since you will re-use them in the next assignment in which you will create shapes interactively in a GUI.

NOTE: The book has a little typo that might be confusing. It says "Implement a simple class hierarchy of shapes, which consists of an interface. Shape and ..."
The '.' should be a comma (plus another comma is needed) yielding "... consists of an interface, Shape, and ..."