-
在作业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
-
Middlegen Hibernate 的.HBM.XML文件生成(需在ANT环境下进行使用)
Middlegen Hibernate 的.HBM.XML文件生成(需在ANT环境下进行使用)-Middlegen Hibernate s. HBM.XML file generation (need to use ANT environment)
- 2023-04-17 19:55:03下载
- 积分:1
-
用JAVA编写的记事本,简洁实用。
用JAVA编写的记事本,简洁实用。-prepared using JAVA notebook, simple and practical.
- 2022-03-10 05:16:41下载
- 积分:1
-
null
我只是想下一个JAVA写的电驴客户端源码看看,所以随便上传了一个垃圾源码-null
- 2022-03-16 10:14:59下载
- 积分:1
-
just a test code
just a test code -just a test code
- 2022-03-01 21:31:23下载
- 积分:1
-
XPAGER 分页标记
XPAGER 分页标记-XPAGER minute page marks
- 2022-05-30 17:36:13下载
- 积分:1
-
Java语言程序源码,网页采集系统,欢迎大家使用
Java语言程序源码,网页采集系统,欢迎大家使用-Java language program source code, web pages collection system, welcome to use the
- 2023-05-17 17:30:04下载
- 积分:1
-
一个简单的游戏。新的图形,添加声音。特点:处理,击球,…
A simple blackjack game. New graphics, added sounds. Features: dealing, hitting, standing, insurance, and money.
- 2022-03-19 05:45:35下载
- 积分:1
-
一个良好的例子,可以学习的基础知识!哈哈!
一个很好的struts国际化的例子,能够学习到基本的知识!呵呵!-A good example of struts internationalization can learn basic knowledge! Ha ha!
- 2022-03-02 04:07:24下载
- 积分:1
-
Graphical user interface base abstract class, interface applications Apple ini...
图形操作界面基础;抽象类,接口应用;Apple初步-Graphical user interface base abstract class, interface applications Apple initially ... ...
- 2022-03-06 01:14:28下载
- 积分:1