请教一个关于This关键字的问题!
class Employee {
private String name;
private int age;
public Employee (String name, int age) {
this.name = name;
this.age = age;
}
}
在这段代码中,this.name = name;private String name;
private int age;
public Employee (String name, int age) {
this.name = name;
this.age = age;
}
}
this.age = age;
哪个是局部变量,哪个是实例变量啊? 有点迷糊!