The Composite design pattern is a structural design pattern which is used to group the objects of same type together and create hierarchies of objects. As an example consider a factory where "Manager" is an "Employee" but also has subordinates which are "List<Employee>" and in this way a tree structure for a group of "Employee" is created.
As an example following is an implementation in Fortran:
Github - Fortran implementation of Composite pattern
Fork
As an example following is an implementation in Fortran:
Github - Fortran implementation of Composite pattern
No comments:
Post a Comment