-
在作业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
-
希望大家多多交流,呵呵,软件开发的联合开发,…
希望大家多多交流,呵呵,对软件共同开发,-Hope that we communicate a lot, huh, huh, the joint development of the software, huh, huh
- 2022-04-17 11:27:39下载
- 积分:1
-
jar,使用纯java实现的RRD数据库,使用RRD数据库统计…
jrobin,使用纯java实现的RRD数据库,使用RRD数据库来统计数据.-jrobin, using pure java realize the RRD database, use the RRD database to statistical data.
- 2022-07-07 10:28:58下载
- 积分:1
-
java中线程的应用,你学会了吗,这里是一个例子可供你参考使用。...
java中线程的应用,你学会了吗,这里是一个例子可供你参考使用。-java threads of the application, you got it, here is an example for your use and reference.
- 2022-08-16 21:06:12下载
- 积分:1
-
this is time table generation project
this time table generation project-this is time table generation project
- 2023-03-28 08:10:03下载
- 积分:1
-
java API 在包java.util中有一个GregorianCalendar类,使用它可以得到一年内某个月的日历。...
java API 在包java.util中有一个GregorianCalendar类,使用它可以得到一年内某个月的日历。-java API in the package java.util contains a GregorianCalendar class, using it can be a month of the calendar year.
- 2022-11-23 08:05:03下载
- 积分:1
-
用java实现的抓屏功能。
用java实现的抓屏功能。-achieved using java Capturing the Screen function.
- 2022-03-01 17:37:58下载
- 积分:1
-
Java的AWT编程
Java的AWT编程-AWT Java Programming
- 2022-03-21 17:47:41下载
- 积分:1
-
使用java RMI方法为例
exemple of using RMI method in java
- 2022-03-01 12:36:59下载
- 积分:1
-
java编写的小程序,可以供模仿学习之用!
java编写的小程序,可以供模仿学习之用!-prepared java applet, you can use for learning to imitate!
- 2023-01-15 00:55:03下载
- 积分:1