第一题:
public abstract class A {
public abstract void methodA();
public abstract void methodB();
public void methodC(){};
public void methodD(){};
}
第二题:
public class As extends A{
@Override
public void methodA() {
// TODO Auto-generated method stub
}
@Override
public void methodB() {
// TODO Auto-generated method stub
}
@Override
public void methodC() {
// TODO Auto-generated method stub
//super.methodC();
}
}
第三题:
public static void main(String[] args) {
//声明一个A类型的As
A a = new As();
}