摘要:
两个对象是否为同一个对象:是看两个对象是否指向堆中的同一块内存。 1、使用object.ReferenceEquals() 2.使用object.equals() 3、使用== 得到同样的结果。 目前来看,这三个方法都能判断两个对象是否为同一个对象。但是: 这两个s1,s2是两个不同的对象,因为ne 阅读全文
posted @ 2019-03-07 14:32
张玉昊
阅读(5249)
评论(3)
推荐(1)
摘要:
原文:Come in ,Amy. A:Come in B. Shut the door,please. This bedroom's very untidy. B:What must I do Mrs.A? A:Open the window and air the room. A:Then put 阅读全文
posted @ 2019-03-07 13:50
张玉昊
阅读(175)
评论(0)
推荐(0)
摘要:
原文 :Mrs.smith's living room. Mrs.smith's living room is large. There is a television in the room. The television is near the window. There are some ma 阅读全文
posted @ 2019-03-07 13:15
张玉昊
阅读(179)
评论(0)
推荐(0)
摘要:
一、params. 可变参数,无论有几个参数,必须出现在参数列表的最后,可以为可变参数直接传递一个对应类型的数组。 二、ref 引用传递 三、out out 参数在使用之前必须在方法里为out参数赋值。 out参数无法获取实参传来的值。所以在主函数 中,只需声明函数就行。它也是引用。 out一般用在 阅读全文
posted @ 2019-03-07 11:42
张玉昊
阅读(13283)
评论(3)
推荐(1)

浙公网安备 33010602011771号