X Tutup
Skip to content

Commit 074725c

Browse files
committed
Update README.md
1 parent 9e85292 commit 074725c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@
7777
##Composite
7878
**Intent:** Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
7979

80+
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/composite/etc/composite.jpg "Composite")
81+
82+
**Applicability:** Use the Composite pattern when
83+
* you want to represent part-whole hierarchies of objects
84+
* you want clients to be able to ignore the difference between compositions of objects and individual objects. Clients will treat all objects in the composite structure uniformly
85+
8086
##Decorator
8187
**Intent:** Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
8288

0 commit comments

Comments
 (0)
X Tutup