首页 > 代码库 > This 关键字和变量作用域

This 关键字和变量作用域

public class Number {
    int count;
public void method01(){
//    int count=3;
    count=3;
//    this.count=3;
    System.out.println(count);
}
public static void main(String[] args) {
    Number number=new Number();
    number.method01();
    System.out.println(number.count);
}
}