You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Composite lets you compose objects into tree structures and then work with these structures as if they were individual objects.
6
+
7
+
For example, lets say you have an order, and thar order can be composed by many packages that contains boxes with products.
8
+
9
+
Composite can solve this by making an abstraction of package, and every item and box inherits from it. All the boxes can have different packages inside it, and the item is the final content.
0 commit comments