I wonder if this example is a builder pattern.
jonghyun lee 4 lat temu • Ostatnio zmodyfikowane przez anonymous 4 lat temu • 0
I am wondering about the Java example for the builder pattern on this site.
In the example, the director creates the part-specific types then the car builder and the car manual builder simply set them.
However, in the builder pattern described in GoF's design pattern, it is explained that only builders are able to combine the entire product with certain elements and know what types of elements are implemented.
I am curious as to the fact that the builder only plays the role of 'set', and that the director creates the parts and passes them as arguments.
Customer support service by UserEcho