
有道词典
网络释义
例句
- 1.它是一个单实例类。
It is implemented as a singleton class.
dict.yoduao.com
- 2.由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.
dict.yoduao.com
- 3.单例模式可能是最常用的OOP设计模式之一了;它限制了一个类的对象实例数只能为1。
The singleton pattern is probably one of the most often used OOP design patterns; it restricts the number of object instances of a class to one.
dict.yoduao.com
©2026 网易公司