super(userName)必须是方法中的第一条语句http://www.javayou.com

解决方案 »

  1.   

    this.userSalary  是在哪声名的?参数里的userSalary这个是不能用this调用的
     super(userName)必须是方法中的第一条语句public Manager(String userName,String userSalary)
       try{      super(userName);     //数据库连接  Connectin conn =?
         //查询结果集  ResultSet rs  =?    
         //  select userSalary from user where userName= "+ userName +"";
         //取出薪水  正常
          this.userSalary  = rs.getFloat(1);
         // super(userName);
        //释放连接
      }catch(SQLException ex){
      }
      

  2.   

    没错,super语名必须放在构造方法的第一句。。