2008年5月13日
摘要: 第一个this的意思是调用Car(int petals)方法的属性petals。 第二个this的意思是实例化Car(String s, int petals)方法中的参数s(this.s = s)。 第三个this是调用Car(String s, int petals)方法的两个参数并传参。 在C#中,this关键字代表当前实例,我们可以用this.来调用当前实例的成员方法,变量,属性,字... 阅读全文
posted @ 2008-05-13 15:36 子非魚 阅读(3338) 评论(0) 推荐(0) 编辑