Multiple choice technology programming languages

You need to access a complex object in a recursive way…building the object from other objects. This is an example of which pattern?

  1. Abstract Factory

  2. Factory Method

  3. Builder

  4. Composite

  5. Recursive Builder

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

Composite composes objects into tree structures, treating individual and group objects uniformly. Recursive access to nested structures built from other objects is the signature use case. Builder constructs objects stepwise, while Composite accesses them hierarchically.