✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
1. If you want to represent part-whole object hierarchies.
or
2. When you want clients to be able to ignore differences between object assemblies and individual objects. Clients will then treat all objects in the structure in the same way.
you will apply