Match creational pattern type with the situation in which you're most likely to use it.
Creational design patterns
Match pattern with its situation
Report a typo
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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.