Question d’entretien chez Elite Mindz

What is factory pattern and singleton pattern?