March 2002
Intermediate to advanced
496 pages
8h 51m
English
Figure 5.1 shows an ordinary composite structure. The Leaf and Composite classes share a common interface that Component abstracts, and a Composite object retains a collection of other Composite and Leaf objects. Note that the Component class in Figure 5.1 is an abstract class with no concrete operations, so you could define it as an interface that Leaf and Composite implement.

|
Read now
Unlock full access