Match pattern with its situation

Report a typo

Match creational pattern type with the situation in which you're most likely to use it.

Match the items from left and right columns
Factory method
Singleton
Prototype
when you don’t know beforehand the exact types and dependencies of the objects your code should work with
when you need to create only one instance of an object
when you need to create a different variation of the same object
___

Create a free account to access the full topic