Dānlì móshì bǎozhèng yí ge lèi zhǐ yǒu yí ge shílì.
The singleton pattern ensures a class has only one instance.
Tips
usage
One of the 23 GoF (Gang of Four) design patterns. 单例 literally 'single instance' — the pattern forces a class to have exactly one instance globally. Interview-favourite topic in Chinese software engineering.