Grokking Design Patterns for Engineers and Managers
Ask Author
Back to course home

0% completed

Vote For New Content
Composite Pattern
On this page

The Composite Pattern is a structural design pattern that enables the composition of objects into tree structures to represent part-whole hierarchies. This pattern allows clients to treat individual objects and object compositions uniformly.

Let us look at a problem that we come across through an illustration image

The illustration shows the organizational structure of a company in a simplified manner while drawing attention to an issue that the Composite Pattern can effectively resolve

.....

.....

.....

Like the course? Get enrolled and start learning!

On this page