private String name;
pricate double salary;
private Date hireday;
改为 private String name;
protected double salary;
private Date hireday;
可以不用该成public;
----------------解决方案--------------------------------------------------------
试试看
----------------解决方案--------------------------------------------------------