This repository contains codebase for implementation of multiple design patterns.
The composite pattern is basically used when hierarchies are involved. The below image shows the composite design pattern class diagram.
The component is the interface containing the operation that needs to be performed both by the composite or the hierarchical class and the leaf class.