爱词霸英语   汉语   手机版   软件版下载 | English
每日一句:正在加载...
1.You can assign values to the data members, but you must first know how to refer to a member of an object.
可将值赋给数据成员,但首先必须知道如何引用一个对象的成员。收藏指正
2.Since the primitive holds the actual value and not a reference to an object, when you assign primitives you copy the contents from one place to another.
由于主类型容纳了实际的值,而且并非指向一个对象的句柄,所以在其赋值的时候,可将来自一个地方的内容复制另一个地方。收藏指正
3.You must assign an object to each reference before you use it, and if you try to use a reference that’s still null, the problem will be reported at run-time.
正式使用前,必须个句柄都分配一个对象。若试图使用依然null的一个句柄,就会在运行期报告问题。收藏指正
4.Whenever you manipulate an object, what you’re manipulating is the reference, so when you assign “from one object to another” you’re actually copying a reference from one place to another.
对一个对象进行操作时,我们真正操作的是它的句柄。所以倘若“从一个对象另一个对象”赋值,实际就是将句柄从一个地方复制另一个地方。收藏指正
尝试查询