Pergunta de entrevista da empresa Persistent Systems

Factory design patterns scenario and write the code.