Exercise Set 6: Complex Class Hierarchies

Exercise 6.1 Given a UML diagram to represent the descendant tree, and the code that implements the method which counts the number of people in the descendant tree, develop the following methods:

Add the missing templates to all classes and continue to develop the templates as you work on this problem. Add one more generation (at least three grandchildren) to the test cases.

Exercise 6.2 A GUI Component is one of the following:

Each component contains a label and some additional data.
The data for a Table is one of

A Row is one of

Data for each of the remaining components is the default value to be displayed, specified as a String, and the preferred width and height.

Note: Do not write the code!!!

Exercise 6.3 A WebPage consists of a

A Body is a list of HTML elements.
A HTML element is either

A Link consists of