有难题求教
class A{private int m;
public A(int n) {m=5+n;}
public int get() {return m;}
}
class B extends A{
public B(int b){ super(b); }
public int geti() {return b;}
public int get() {return super.get();}
}
public class C{
public static void main(String args[]){
B nb=new B(4);
System.out.println("结果为:\n"+nb.geti());
System.out.println(nb.get());
System.out.println();
}
}
这道程序总提示有错,请高手指教,谢谢了