Composite Design Pattern
Nov 2 · 2 min read

Composite design patterns falls into one of structural design patterns. Before diving into the composite design pattern, let me clarify a few points here. We can define the composite objects as objects that contain other objects. For example, the company has divisions, and each division contains departments which contain teams, and so on.
Software engineers need the composite pattern since we would like to treat or…

