• Those who use it will find that they often have to write the same code each time they want to create a different Singleton class.

    他们发现每次他们创建一个不同单例时候,都不得不同样代码

    youdao

  • The only other method (set in italics) in the class is used to get a reference to the singleton and to create it if it is not yet instantiated.

    该类仅剩方法(用斜体标识)用于获取单件的一个引用如果尚未实例化则创建

    youdao

  • Likewise, with a singleton implemented as single instance, you leave open the possibility of altering the class to create more instances in the future.

    同时如果使用创建实例方法实现单例模式,还具有创建多个实例变通能力。

    youdao

  • So, it also can be used to create a singleton instance of a class.

    因此可以用来创建一个单身实例

    youdao

  • So, it also can be used to create a singleton instance of a class.

    因此可以用来创建一个单身实例

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定