go top

简单工厂方法

网络释义

  Simple Factory method

尽管只有简单工厂方法Simple Factory Method)才是真正意义上的单件 (Singleton),但你会发现每一个特定的工厂类(这些类属于更为通用的factory模

基于33个网页-相关网页

有道翻译

简单工厂方法

Simple factory method

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

双语例句

  • 调用工厂方法断言返回对象具有正确类型一样简单

    This can be as simple as invoking the base class's factory method and asserting that the returned object is of the correct type. For example.

    youdao

  • 目前, getCalculator() 工厂方法采用了非常简单方法,它假定这个服务所创建全部计算器通过相同服务端点来访问的。

    The getCalculator() factory method currently takes the very simple approach of assuming that all calculators created by this service will be accessed via the same service endpoint.

    youdao

  • 改进了简单工厂模式实现策略克服了原来简单工厂模式的局限性同时弥补工厂方法模式的不足。

    The policy of Simple Factory is reformed, and applied to produce command objects, which eliminates the limitations of past Simple Factory and makes up the defect of Factory Method.

    youdao

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

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

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