1 2 3 4
摘要: 1,当局部变量和成员变量重名的时候,在方法中使用this表示成员变量以示区分。 class Demo{ String str = "这是成员变量"; void fun(String str){ System.out.println(str); System.out.println(this.str) 阅读全文
posted @ 2020-08-07 23:46 Mr_Elliot 阅读(282) 评论(0) 推荐(0) 编辑
PV