Multiple choice technology architecture

Which pattern prescribes recursive composition for complex objects?

  1. Composite Pattern

  2. Strategy Pattern

  3. Observer Pattern

  4. Factory Pattern

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Composite pattern composes objects into tree structures to represent part-whole hierarchies. It allows clients to treat individual objects and compositions of objects uniformly through recursive composition, enabling complex objects to be built from simpler ones using the same interface.