假设有两个类Base
和Extended
public class Base{
public void runThis(){
//... code
}
}
public class Extended extends Base{
public void runThis(){
//... code
}
}
如何让编译器说出编译错误,因为Extended.runThis()不包含语句super.runThis();
?