... 渥太华参议员队 Ottawa Senators 无参数函数 NILADIC-Funktionen 性能参数 Leistungsdaten ...
基于8个网页-相关网页
... 完整性条件约束 integrity constraint 无参数函数 niladic functions 无条件 unconditional ...
基于4个网页-相关网页
无参数构造函数约束 parameterless constructor constraint ; parametriton konstruktoriehto ; constructorbeperking zonder parameters
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
如果您没有提供一个无参数构造函数的话,那么这是您给对象添加一些状态的最后机会!
If you haven't provided a no-argument one, this is your last chance to add some state to the object!
因此,您永远都不该为一个不可变类提供一个无参数的构造函数。
Thus, you should never have a no-argument constructor for an immutable class.
应用推荐