go top

网络释义

  Singleton class

许多操作单个对象的方法是基于操作其单例类singleton class),并且这样可以使元编程更简单。获得单例类的经典方法是执行如下代码:

基于74个网页-相关网页

短语

懒汉式单例类 Lazy Singleton

饿汉式单例类 Eager Singleton

使用单例类 Use the singleton-class

单实例类 GoF ; singleton

单例模式类 Singleton

 更多收起网络短语

双语例句

  • 对象垃圾回收机制回收然后单例类又被重新加载

    Singleton classes destroyed by garbage collection, then reloaded.

    youdao

  • 由于也是单例的实,所以可能出现多个单例并存的情况。

    Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.

    youdao

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

    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

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

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

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