Hexaware Technologies interview question

What is factory design pattern