接口中没有实现,同名就同名吧就是只要在A类中实现那个void Mesage()就行了,那样B和C中的接口方法都实现了吗?

解决方案 »

  1.   

    interface Binterface

     void Message();
     void OtherMethod();
    }interface Cinterface

     void Message();
    void OtherMethod();}class A imlements Binterface,Cinterface
     {  
       void A();
       public main(String args[])
        {
          Binterface();
          Cinterface();
        }
     }不知道这样对吗《-----仁者见仁,智者见智----》
       
      

  2.   

    interface Binterface

        void Message();
        void OtherMethod();
    }interface Cinterface

        void Message();
        void OtherMethod();}class A implements Binterface,Cinterface
     {  
        public void Message(){}
        public void OtherMethod(){}
     }
      

  3.   

    既然是imlements 
    那么接口中的方法必须全部实现
    类中的方法必须要有自己的实现
      

  4.   

    实现一个void Mesage()就行了
      

  5.   

    roundside(世道轮回)
    这位先生已经说得很清楚了,中要加上
    public void Message(){}
    public void OtherMethod(){}
    加上{}就是已经实现了接口,只不过没执行的代码,也就是不做任何事情,
    如果你要它做事,就写上你想实现的动作代码就可以了,