Pregunta de entrevista de Wipro Digital

Explain Factory pattern with an example