Composite | Cheat Sheet

Structural Pattern — Design Patterns Series

Composite is used for mapping part-whole hierarchies with object composition in tree structures. With this you have a consistent handling of individual objects as well as object compositions. Real-life examples are folder structures of operating systems or rank systems in military or companies.




Online Bootcamp about Software Development: Principles, Patterns, Object Composition, Inheritance, TypeScript, and Angular

Recommended from Medium

How to setup unit tests with Create React App, Mocha and Visual Studio Code Mocha side-bar

Interesting JavaScript Libraries born in China

Callback functions in React


Emote Reactions Now Available via Userscript!

Understanding React `useState` hook

Make your code more “Human Readable” with JSDoc

Build Youtube in React 10: adding routing in React

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


Full Stack Software Engineer | Trained Mathematical-Technical Software Developer | Writer at CP Massive Creative

More from Medium

How to Set Up Real-Time SDK Java Application with Maven on the Eclipse IDE

Getting started with Ory Keto SDK for Java

Dynamic JSON Translator

Java Project Structure.

Measure Battery capacity with a microcontroller