What is a factory design pattern? Why is it used?
What is a factory design pattern?