Is it possible to use factory method with builder pattern?

362 views Asked by At

I'm having this question because:

I know that builder pattern (as far as I understand) should be used when you have to create complex objects (their constructors are large) and factory is for having a class who is responsible for instantiating objects so you can have low coupling and high cohesion

But, since builder and factory are creational patterns I don't know if using both of them make sense or correct.

thanks in advance.

0

There are 0 answers