为什么我改了返回值类型并没有报错
package project03;
public class Father {
public int age;
public String surname;
public int mony;
public void power() {
System.out.println("制定未来!!");
}
package project03;
public class Son extends Father {
public int power(int a ) {
a = 1;
return a;
//System.out.println("制定未来!!");
}
}
}