Domanda di colloquio di Elite Mindz

What is factory pattern and singleton pattern?