- 继承时
this.成员变量
–this所在类
的成员变量this.成员函数
– 当前new对象所在类
的成员函数
// 父类
class Fu{
int num = 3;
public void show(){
System.out.println("Fu show"</
this.成员变量
– this所在类
的成员变量this.成员函数
– 当前new对象所在类
的成员函数// 父类
class Fu{
int num = 3;
public void show(){
System.out.println("Fu show"</