Hands-On Design Patterns with Java
上QQ阅读APP看书,第一时间看更新

Composite structure diagrams

The Composite structure UML diagram shows the runtime structure of a system. This diagram can be used to show the internal components of a class. The following example shows a microwave with four structures:

A graphical composite structure diagram

We can also represent a composite structure with a rectangular box, as illustrated in the following diagram:

A textual composite structure diagram