class B extend A
 {
   B(int i){ super(0); };
   B(){} ;   
   }

解决方案 »

  1.   

    class B extend A
     {
       B(int i){ super(i); };
       B(){} ;   
       }
      

  2.   

    任然编译出错呀!
    C:\j2sdk1.4.0_01\bin\javac.exe C.javaC.java:20: <identifier> expected
          super.super(0);
                ^
    C.java:20: not a statement
          super.super(0);
               ^
    C.java:21: cannot resolve symbolsymbol  : method A  (int)location: class C
            A(0);
            ^
    3 errors
      

  3.   

    super.super();
    没这个写法吧A(0);
    还没有声明,怎用?
      

  4.   

    package com.borland.samples.welcome;class A
     {
       A(int i){};
       A(){} ;   
       }
       class B extends A
        {
          B(int i){ super(i); };
          B(){} ;   
       } public  class  C   extends B          {  //an apliacation
        public static void main (String args[])
        {     //  System.out.println();
          }   C() {
          super(0);//调用B中的构造方法B(int i)
             };  }