Exercise Set 4: Self Referential Class Hierarchies

Exercise 4.1 Given the shopping list of groceries and the UML diagram (Figure 4.1), develop the following methods:

Exercise 4.2 Develop the collection of classes for representing a list of actors in a cast. We assume, each actor is listed only once. It is sufficient to just record actor's full name as one String: the last name followed by the first name.

Exercise 4.3 The playbill is a list of actor-role pairs, each actor and each role can be represented as one String. Every actor plays only one role.

Last modified: Tues, April 22, 2003, 12:43 pm
HTML conversion by TeX2page 4q4