Composite pattern is useful when Group of items and an individual item need to be handled uniformly. For example, operations cut, copy and paste should work uniformly for both an individual file or a directory.
Leaf
|
Branch
|
Contact
|
Contact Group
|
File
|
Directory
|
Address
|
Address group
|
Comments
Post a Comment