The static initializer in Listing 2 shows the registration process for a Customer class that contains two properties: name and salary.
清单2中的静态初始化器显示了Customer类的注册过程,这个类包含两个属性:name和salary。
The wordform_handler class has an initializer and keeps track of the parameter passed in to determine whether to apply XSLT to XML results.
wordform_handler类有一个初始化器,并记录传递的参数,决定是否对XML结果应用XSLT。
In a static initializer block, which executes when the class is loaded.
在一个静态初始化块中,在加载类时执行。
This information resides in a BeanInfo class, which is typically provided by your bean when the bean's class is loaded via a static initializer.
这条信息位于beaninfo类中,该类通常在bean的类通过静态初始化器装入时,由bean提供。
Class members that are not initialized in the initializer list are implicitly initialized by using their default constructor.
没有在初始化列表中初始化的类成员,使用它们的默认构造函数隐式初始化。
When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.
在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。
When overridden in a derived class, returns an initializer for the specified method.
在衍生类别中覆写时,会传回指定之方法的初始设定式。
When you use an object initializer to create an instance of a named type, the default constructor for the class is called, followed by initialization of designated members in the order you specify.
当您使用物件初始设定式来建立具名型别的执行个体时,会呼叫类别的预设建构函式,接著按照您指定的顺序初始化指定的成员。
When you use an object initializer to create an instance of a named type, the default constructor for the class is called, followed by initialization of designated members in the order you specify.
当您使用物件初始设定式来建立具名型别的执行个体时,会呼叫类别的预设建构函式,接著按照您指定的顺序初始化指定的成员。
应用推荐