抽象类中speak方法为什么会报错
package com.imooc;
public abstract class People {
public abstract void speak();
}
package com.imooc;
public class China extends People {
@Override
public void speak() {//为什么老是提醒speak是错误的?求解答~~
System.out.println("中国人说的是中文");
}
}
package com.imooc;
public abstract class People {
public abstract void speak();
}
package com.imooc;
public class China extends People {
@Override
public void speak() {//为什么老是提醒speak是错误的?求解答~~
System.out.println("中国人说的是中文");
}
}
2016-07-07
举报