Skip to content
Sharp

Software Architecture · interview question

Why is it beneficial for the build() method in a Builder pattern to return the constructed object?

Multiple choiceEasychapter-13-curatedpremiumsoftware-architecturebuilder-pattern
Choose one answer
Answer and explanation

Correct answer

B. It allows for immediate use of the constructed object.

Why

Returning the constructed object from the build() method allows the client to immediately use the newly created object, streamlining the construction and usage process.

Test yourself on Software Architecture

A free test with instant, explained results. No account needed.

Start free test
All Software Architecture questions →