编辑代码

public Dog extends Animal{

    public void eat(int power){
        int po+power;
      System.out.println(this.name +" "+this.age+ " "+ po)
    }
}