在People中加入一个没有参数的构造函数就可以了  public People(){
  }我试过了

解决方案 »

  1.   

    //super(age,sex,tall,height,name);
    为什么把这个给注释了?父类就没办法构造了
      

  2.   

    同意楼上的再加一个默认的构造函数  
    public People(){}
      

  3.   

    You cannot define Default Construct function in Super class maybe.so , add notation as following,that's ok.
    /*
      public People(int age,String sex,double tall,float height,String name){
         this.age=age;
         this.sex=sex;
         this.tall=tall;
         this.height=height;
         this.name=name;  }
    */
      

  4.   

    两种方法:
    1.父类添加 构造器  public People(){
      }2.子类显式调用构造器
      People(int age,String sex,double tall,float height,String name)具体原因见 will52000()  的解释!
      

  5.   

    楼上的兄弟如何在Student中显式调用构造器呢?具体一点!!!!!!!!!!!!]
      谢谢!!!!!!
      

  6.   

    把你代码中//super(age,sex,tall,height,name);的注释去掉就可以了呀
      

  7.   

    这样试一下://类People(父类)
    package com.itfuture.netoa.kaoqin;public class People {
      public int age;
      protected String sex;
      double tall;
      float height;
      //private String name;
      String name;
      public People(int age,String sex,double tall,float height,String name){
         this.age=age;
         this.sex=sex;
         this.tall=tall;
         this.height=height;
         this.name=name;  }}package com.itfuture.netoa.kaoqin;public class Student extends People{
       String school;
       String banji;
      public Student(int age,String sex,double tall,float height,String name,String school,String banji)
      {
         super(age,sex,tall,height,name);
        
         this.school=school;
         this.banji=banji;  }
    }