你这是什么程序呀?这么多错误
10行:staff.length //staff.size
12行:System.out.………… //Systme
16行:implements //implenemts
16行还有你要实现什么接口呀,Compareble编译器提示没有啊。你再仔细看看吧
10行:staff.length //staff.size
12行:System.out.………… //Systme
16行:implements //implenemts
16行还有你要实现什么接口呀,Compareble编译器提示没有啊。你再仔细看看吧
因为你没有定义compareTo函数,所以有:Employee should declared abstract it does not define compare (java.lang.object)。意思是需要定义成抽象类。raiseSalary(double bypend )
调用到函数的时候你传进一个参数就可以了。