Instance constructors can also be used to call the instance constructors of base classes.
执行个体建构函式也可以用来呼叫基底类别的执行个体建构函式。
An interface cannot contain constants, fields, operators, instance constructors, destructors, or types.
接口不能包含常量、字段、运算符、实例构造函数、析构函数或类型。
You should not use your instance constructors, some special private function, or any other idiom to initialize static variables.
不应该使用实例构造函数、一些特殊的私有方法、任何其它习惯来初始化静态变量。
This instance doesn't have any special constructors, operations, attributes, or references, so these calls aren't required.
因为本实例没有任何特殊的构造函数、操作、属性或引用,所以不需要这些调用。
In addition, enumerated types support having constructors, instance methods, and variables, among other things.
此外,枚举类型支持拥有构造函数、实例方法和变量,等等。
A J2SE client can use BankingService to create a Service instance via its two constructors.
J2SE客户端可以通过BankingService的两个构造函数创建服务实例。
You can also write contract tests on classes or aspects, where you can define tests on constructors and invariant conditions on instance fields.
也可以在类或方面上编写合约测试,在这些类或方面中可以在构造函数上定义测试,在实例字段上定义不变条件。
This behavior is referred to in the DI world as constructor injection, because the instance is passed through one of the constructors.
这个行为在DI世界中称作构造函数注入,因为实例是通过一个构造函数传递的。
My ModelMBeanExtension implements the same constructors but stores a copy of the ModelMBeanInfo in an instance variable.
我的ModelMBeanExtension实现了同样的构造函数,但是在一个实例变量中存储了ModelMBeanInfo的一个副本。
For instance, when I create a new class, I no longer spend any time writing setters and getters (accessors). I don't write most of the constructors.
例如,创建新类时,我不再花时间编写setter和getter(访问器),也不用编写大部分的构造器。
Because the new instance of the object is initialized to zero and no constructors are run, the object might not represent a state that is regarded as valid by that object.
因为物件的新执行个体会初始化为零,并且建构函式不会执行,所以物件可能不会表示由该物件视为有效的状态。
Because the new instance of the object is initialized to zero and no constructors are run, the object might not represent a state that is regarded as valid by that object.
因为物件的新执行个体会初始化为零,并且建构函式不会执行,所以物件可能不会表示由该物件视为有效的状态。
应用推荐