Using a static factory method to create a Msg object.
使用静态工厂方法创建一个msg对象。
A static factory method on a generic or a non-generic class?
一个静态的泛型和非泛型类工厂方法?
The first class USES a constructor to initialize the properties, and the second class USES a static factory method.
第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。
应用推荐