GE Interview Question

what is Factory pattern and how it is useful