Thus, you should never have a no-argument constructor for an immutable class.
因此,您永远都不该为一个不可变类提供一个无参数的构造函数。
This instantiation involves the default constructor for the class being called, with the injection of dependencies happening afterwards.
这种实例化涉及到要调用的类的默认构造函数,随后还要注入依赖关系。
This type actually defines the signature of a constructor for the specified class and a matching sequence of values.
该类型实际定义了指定用于类和值的匹配序列的构造器的签名。
应用推荐