![Hands-On Design Patterns with Java](https://wfqqreader-1252317822.image.myqcloud.com/cover/688/36698688/b_36698688.jpg)
上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:
![](https://epubservercos.yuewen.com/A2D5A8/19470379708814006/epubprivate/OEBPS/Images/c8c1eec8-a500-405d-8de6-b0d3c1cadb2c.png?sign=1739007224-cQLWNHSbLuJBxA1Z1Q7wNQP1ag4ORw6I-0-445c4596f68299e5249e858b567b2f7b)
A graphical composite structure diagram
We can also represent a composite structure with a rectangular box, as illustrated in the following diagram:
![](https://epubservercos.yuewen.com/A2D5A8/19470379708814006/epubprivate/OEBPS/Images/dacda579-f16a-4521-9e89-541b5b1fa59e.png?sign=1739007224-gzepxsj1UGrap41aH0RggiGNRaTLU7p9-0-5bfb2407e594a9dad4006c62d5cba938)
A textual composite structure diagram