go top

单实例类

网络释义

  singleton

... single inheritance(单继承) singleton(单实例类) slot(槽) ...

基于1个网页-相关网页

有道翻译

单实例类

Single-instance class

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • 它是一个单实例类。

    It is implemented as a singleton class.

    youdao

  • 由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。

    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.

    youdao

  • 单例模式可能是最常用的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.

    youdao

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

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

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