0 votes
in JAVA by
When do you use Composite design pattern?

1 Answer

0 votes
by

Composite design pattern arranges objects into tree structures to represent part-whole hierarchies. It allows clients treat individual objects and container of objects uniformly. Use Composite pattern when you want to represent part-whole hierarchies of objects.

Related questions

+1 vote
asked Jan 27, 2020 in JAVA by rahuljain1
+1 vote
asked Jul 27, 2021 in JAVA by SakshiSharma
...