By declaring it static, you save client code the overhead of creating an object.
通过声明为静态,为客户机代码节省了创建对象的工作量。
Object expressions, which enable you to define small objects implicitly in expressions as needed, instead of declaring a new type and instantiating an object.
物件运算式,可让您在需要时于运算式中隐含定义小型物件,而不用宣告新型别以及具现化物件。
应用推荐