问答详情
源自:10-3 Java 中的抽象类

The method zhouchang() of type yuan must override or implement a supertype method

The method zhouchang() of type yuan must override or implement a supertype method

package duotaichouxianglei;

public class yuan extends tuxing {

	public void zhouchang() {
		// TODO Auto-generated method stub
		System.out.println("yuandezhouchang");

	}

	@Override
	public void mianji() {
		// TODO Auto-generated method stub

	}

}


提问者:qq_宇_35 2017-08-04 17:45

个回答

  • qq_这里有风_0
    2017-08-05 12:55:26
    已采纳

    定义好抽象父类保存下即可。

  • qq_非常幸运_04390770
    2017-08-04 18:09:44

    package duotaichouxianglei;

     

    public class yuan extends tuxing {

         float r;

        public void zhouchang() {

            // TODO Auto-generated method stub


            zhouchang = 3.14*2*r;

            System.out.println("yuandezhouchang");

     

        }

     

        @Override

        public void mianji() {


            // TODO Auto-generated method stub

     

        }

       public void yuan(float r){

        r = r;

        } 

    }


  • qq__损色__04170649
    2017-08-04 18:01:38

    ???