错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Composite Pattern

  • Vaskaran Sarcar

摘要

The Composite pattern relies on object composition to model part–whole relationships and allows clients to work with both individual objects and object compositions consistently. This chapter explains this pattern through simple examples.