Composite | Cheat Sheet

Structural Pattern — Design Patterns Series

Real-life examples

typical object structure

Meaning

Applicability (suitable if …)

Assets and Drawbacks

Extensibility

Example

abstract base class
Composite that accepts or removes children
Composite that calls its children
Leaf
client

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Itchimonji

Itchimonji

197 Followers

Freelancer | Site Reliability Engineer (DevOps) / Kubernetes | Full Stack Software Engineer | https://patrick-eichler.com/links