Composite: Introduction

Get a brief introduction to the Composite design pattern.

The Composite design pattern allows us to efficiently create tree-like structures. This ability can be useful in many situations. For example, if we need to write software that manages a computer’s file system, we’d want to be able to create folders and ...