-
在作业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
-
structs2框架,myeclipse开发环境
structs2框架,myeclipse开发环境-structs2 framework, myeclipse Development Environment
- 2022-07-18 02:53:21下载
- 积分:1
-
自己写的编译原理作业,java实现,提取出全局变量和局部变量,并分析在哪个函数里面...
自己写的编译原理作业,java实现,提取出全局变量和局部变量,并分析在哪个函数里面-Write their own principles of operation of the compiler, java to achieve, to extract global variables and local variables, and analysis of function in which there
- 2022-06-19 16:27:34下载
- 积分:1
-
实验软装置(基于表达式的计算器ExprEval) 很不错的 有帮助于学习提高...
实验软装置(基于表达式的计算器ExprEval) 很不错的 有帮助于学习提高-Experimental soft device (based on expression calculator ExprEval) very good help in learning to improve
- 2023-08-22 19:15:03下载
- 积分:1
-
电子钟,您可以随时做你想要做精美的电子钟,你心动了,赶快行动吧...
电子钟,您可以随时做你想要做精美的电子钟,你心动了,赶快行动吧-electronic clock, you can always do what you want to do exquisite electronic clock, you echocardiography, it quickly Action
- 2023-06-26 07:05:03下载
- 积分:1
-
hibernate学习笔记,挺好的学习资料。
hibernate学习笔记,挺好的学习资料。-hibernate study notes, very good information on the study.
- 2022-01-21 23:45:43下载
- 积分:1
-
端口扫描,可用于扫描单个主机端口,也可以对多个主机同时扫描...
端口扫描,可用于扫描单个主机端口,也可以对多个主机同时扫描-port scan,scan port ,port sacn ,
my english is bad ,i can not write more
- 2022-01-26 06:13:18下载
- 积分:1
-
tree (Tree) use, on the achievements of several methods
树(Tree)的使用,介绍了建树的几种方法-tree (Tree) use, on the achievements of several methods
- 2022-03-04 10:34:22下载
- 积分:1
-
jdbm NMS
jdbm NMS
- 2022-02-02 07:14:30下载
- 积分:1
-
自己用Java编写的简单程序,来显示系统日期
自己用Java编写的简单程序,来显示系统日期-Own use Java write a simple program to display the system date! !
- 2023-06-09 06:50:03下载
- 积分:1