Skip to content
Sharp

Software Architecture · interview question

In the Builder pattern, why is the 'build()' method important for constructing an object?

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

Correct answer

C. It finalizes and returns the constructed object.

Why

The 'build()' method finalizes the construction process and returns the fully constructed object. It ensures that all necessary parameters have been set and that the object is in a valid state.

Test yourself on Software Architecture

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

Start free test
All Software Architecture questions →