使用静态工厂
Use static factory
以上为机器翻译结果,长、整句建议使用 人工翻译 。
使用静态工厂方法创建一个msg对象。
Using a static factory method to create a Msg object.
youdao
第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。
The first class USES a constructor to initialize the properties, and the second class USES a static factory method.
应用推荐
模块上移
模块下移
不移动