Category

structural design patterns

Design Patterns: Composite

The Composite is another design pattern that belongs to Structural Patterns family. We use this pattern when we want to group components inside a larger component. In other words, we can built a hierarchy of objects. A definition by GoF: A basic structure of Composite pattern: Component Declares an interface for objects in the composition….

Read More