java super和this关键字,super是访问父类,this是访问当前类
class A { public void eat1() { System.out.println("爸爸在吃"); } } class B extends A { public void eat2() { System.out.println("儿子在吃"); } public void eat(int who) { if (who == 1) { this.eat2(); } else { super.eat1(); } } }