EPAM Systems interview question

What is the factory pattern?