...下来,在模块中,我们会定义两个附加的helper函数, 接下来 helper 附加就是众所周知的“类工厂函数(class factory functions)(译者注:或称 function 众所周知 factori对象工厂函数)”。
基于32个网页-相关网页
class factory functions
类工厂函数
以上为机器翻译结果,长、整句建议使用 人工翻译 。
Factory mode two most important functions: 1 the definition of an object to create an interface that encapsulates the construction objects 2 makes specific class work delayed to subclasses.
详细说明:Factory模式的两个最重要的功能:1定义创建对象的接口,封装了对象的建;2使得具体化类的工作延迟到了子类中。
youdao
应用推荐
模块上移
模块下移
不移动