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

    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

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

    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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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