Small examples of Composite design pattern implemented in Java and Python.
This project contains small examples of Composite design pattern implemented in Java and Python.
In software engineering, the composite pattern is a partitioning design pattern. The composite pattern describes a group of objects that are treated the same way as a single instance of the same type of object. The intent of a composite is to “compose” objects into tree structures to represent part-whole hierarchies. Implementing the composite pattern lets clients treat individual objects and compositions uniformly [1].
Fig. 1 - UML class design
J. Rico, (2019) Composite design pattern examples in Java and Python.
[Source code](https://github.com/jvirico/CompositePattern)
[1] - Composite Pattern Wikipedia\
[2] - SHVETS, Alexander. Dive Into Design Patterns. Refactoring. Guru, 2018.
\
[3] - PPCU, Budapest. Design Patterns