0
I wonder if this example is a builder pattern.
https://refactoring.guru/design-patterns/builder/java/example
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.
UserEcho 的客户支持