By arpitmandliya
via java.dzone.com
Published: Mar 12 2013 / 05:18
Composite design patten allows you to have a tree structure and ask each node in the tree structure to perform a task.You can take real life example of a organization.It have general managers and under general managers, there can be managers and under managers there can be developers.Now you can set a tree structure and ask each node to perform common operation like getSalary().
Add your comment