Pergunta de entrevista da empresa EPAM Systems

What is the factory pattern?