随笔分类 - Design Patterns
摘要:A composite is a group of objects in which some objects may contain others; thus, one objectmay represent groups, and another may represent an individual item, or leaf. When you modela composite, two powerful concepts emerge. One important modeling idea is to design groupsso that they can contain ei
阅读全文