patterns/singleton/ #77
Replies: 1 comment
-
What is the difference in implementation of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
patterns/singleton/
Intent Ensure a class only has one instance, and provide a global point of access to it. Explanation Real-world example There can only be one ivory tower where the wizards study their magic. The same enchanted ivory tower is always used by the wizards. The ivory tower here is a singleton.
https://java-design-patterns.com/patterns/singleton/
Beta Was this translation helpful? Give feedback.
All reactions