数据绑定通过大括号执行(例如,将TextArea元素的text属性绑定到ActionScript message实例变量)。
互联网摘选
相反地,人们通过给Thread添加一个实例变量(该变量用于保存当前线程的从线程局部变量到它的值的映射的HashMap)来修改Thread类以支持ThreadLocal。
互联网摘选
The controller sets up the@ person instance variable for the view to use.
控制器设置视图使用的@person实例变量。
互联网摘选
This time, you need to add an instance variable to actually remember the state.
现在,应该添加一个实例变量来实际记忆状态。
互联网摘选
We also used an instance variable to store a reference to the mock object.
我们还使用了实例变量来存储对模仿对象的引用。
互联网摘选
The return value from each method call is assigned to an instance variable for the class.
将每个方法调用的返回值赋给该类的一个实例变量。
互联网摘选
This is the instance variable you were previously asked to provide a name for.
这就是之前要求您输入名称的实例变量。
互联网摘选
Note that this operation cannot be achieved reliably by making the value instance variable volatile.
注意,通过使值实例变量成为可变变量并不能可靠地完成这项操作。
互联网摘选
You can store a collection of orders in an instance variable for the appropriate customer.
您可以在适当客户的实例变量中存储订单集合。
互联网摘选
You'll set a prototype instance variable to point to the parent in the inheritance chain.
方法是设置prototype实例变量使其指向继承链的父。
互联网摘选
Q: What is the default value of an object reference declared as an instance variable?
一个对象的缺省值是什么,当以一个实例变量作为参考时?
互联网摘选
Suppose the getX() method only answers the value of an instance variable.
假定getX()方法只提供某一实例变量的值。
互联网摘选
Note that the validation logic is hardcoded into the method before the instance variable is set.
注意,在设置实例变量之前,验证逻辑被硬编码到方法中。
互联网摘选
构造器会把该实例变量(即信用限制)设为一个参数。
互联网摘选
视图类有一个专用的实例变量@main view component,它引用相应的Swing类。
互联网摘选
除非一个实例变量被标注修饰,否则他将成为一个瞬时变量。
互联网摘选
使用实例变量count中的内容呈现了一个标题,该变量包含了一个简单计数器的值。
互联网摘选
由于Ruby并不需要声明实例变量,因此建模实例变量最简单的方式就是使用散列。
互联网摘选