Design Patterns · Creational Design Patterns: Factory, Builder and the Singleton Debate
Question 1 of 5
The check if name.endswith(".csv") ... elif name.endswith(".json") is repeated in five places. Which creational move removes the duplication?
Tip: press 1-4 to answer, Enter to continue. Finish the quiz to bank your XP.