π Composite Design Pattern
#js #patterns #composite
β Article link
#js #patterns #composite
Composite: Basic Idea
The first thing we need to look at is the definition offered by the book from the Gang of Four:
βCompose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.β
β Article link
#angular #patterns #composite
The Composite pattern defines two basic types of elements sharing the same interface: simple leaves and complex containers. A container can consist of both leaves and other containers. This allows for the construction of a nested, recursive structure of objects resembling a tree.
β Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM