Factory method | Design Patterns in Python | Live coding

Published: 09 February 2020
on channel: Vasyl Herman
90
0

What the Factory method is?
It's typically any method that creates Objects.
A Factory method is an alternative to the initializer that has lots of advantages.
You can have a good naming (better than init), you have a better naming for arguments.
Otherwise, you would end up with a massive constructor

https://github.com/PrettySolution/Des...