Factory Pattern. When to use factory methods?
I like thinking about design pattens in terms of my classes being ‘people,’ and the patterns are the ways that the people talk to each other. So, to me the factory pattern is like a hiring agency. You’ve got someone that will need a variable number of workers. This person may know some info they … Read more