-
在作业1的Employee和EmployeeDemo两个类基础上修改
1,重写Employee类的toString方法,返回Employee类的相关信...
在作业1的Employee和EmployeeDemo两个类基础上修改
1,重写Employee类的toString方法,返回Employee类的相关信息的字符串形式
重写Employee类的equals方法,如果两个Employee实例的名字和所属部门相同,返回true;
并在EmployeeDemo类里面验证上述两个方法
2,定义Clerk、Salesman、Engineer三个类,分别继承自Employee
为Salesman增加一个年销售额属性
为Engineer增加一个年消化人月数属性
3,将下面的描述反映到程序里
普通员工年终奖金分配方案为月薪×2
Salesman:销售额×2%+月薪×1.8
Engineer:年消化人月数×300+月薪×2.5
Clerk:月薪×2.5-1 of the Employee in the operation and EmployeeDemo two classes based on the modification 1, rewrite the Employee class toString method to return to Employee class-related information to rewrite the string form of Employee class equals method, if the two examples of Employee s name and their the same sector, return true and EmployeeDemo the above-mentioned two types of authentication methods inside 2, the definition of Clerk, Salesman, Engineer of three categories, respectively, inherited from the Employee as a Salesman for an additional annual sales for an additional attribute for the Engineer who was the number
- 2023-05-31 23:40:03下载
- 积分:1
-
struts源码
struts源码-struts FOSS
- 2023-08-14 06:45:03下载
- 积分:1
-
DWR Detailed Application
DWR的详细应用 -DWR Detailed Application
- 2022-04-22 05:14:48下载
- 积分:1
-
SearchPathServer
SearchPathServer
- 2022-06-20 18:00:56下载
- 积分:1
-
平时的小程序很好的
平时的小程序很好的 -peacetime good small programs
- 2022-07-15 14:55:46下载
- 积分:1
-
jsp实现URL伪静态,主要原理是通过web.xml的过滤器,对动态的URL进行重写,重写的格式通过正则表达式控制...
jsp实现URL伪静态,主要原理是通过web.xml的过滤器,对动态的URL进行重写,重写的格式通过正则表达式控制-jsp to achieve pseudo-static URL, the main principle is that filters through the web.xml of a dynamic URL to rewrite, rewrite the form of control through regular expressions
- 2022-06-13 01:46:29下载
- 积分:1
-
酷actiongame!
Cool Actiongame! -Cool Actiongame! Cool Actiongame!
- 2023-08-21 04:45:03下载
- 积分:1
-
这是一个利用MIDLET实现的在手机上运行的时钟源代码,谨供学习互相交流只用....
这是一个利用MIDLET实现的在手机上运行的时钟源代码,谨供学习互相交流只用.-This is a realization of the MIDLET use the phone to run the clock source code, I would like to study for the exchange only.
- 2022-08-25 11:28:29下载
- 积分:1
-
一个java服务器插入到数据库
A Java Server Insertion to DB
- 2022-06-01 18:50:39下载
- 积分:1
-
java 是一个很有用的文件
java 是一个很有用的文件-java is a very useful document
- 2022-01-25 23:15:02下载
- 积分:1