Why is Builder pattern better than a Constructor with arguments in the Class's object being created?

Почему мы не можем выполнять различные этапы сборки в самом конструкторе. if the build steps take arguments why can't they be provided as arguments to constructor and utilized within constructor to create the object.

AFAIK, in Builder pattern, the client which specific object to create; then what is the advantage in using a builder instead of a Constructor with arguments in the Class's object being created?

6
задан lesmana 9 December 2012 в 22:21
поделиться