-
在作业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
-
多
Multi session 多任务编程的例子-multi-task programming examples
- 2022-01-26 18:31:44下载
- 积分:1
-
在JAVA中使用不同方式API实现文件复制。
在JAVA中使用不同方式API实现文件复制。-In JAVA using API in different ways to achieve duplicated.
- 2023-05-30 10:40:03下载
- 积分:1
-
IKEA shopping store is a distributed systems program , where there are customer...
IKEA shopping store is a distributed systems program , where there are customer threads, stock thread , clerk threads and these operate to assist the customer threads to shop and pay,, uses monitor
- 2022-03-20 07:37:23下载
- 积分:1
-
achieve flashing title bar
实现闪烁的标题栏-achieve flashing title bar
- 2022-01-25 19:52:18下载
- 积分:1
-
简易计算器不需要很高深的算法,对于数字计算的唯一要求就是在除数为零的时候要加以判断和处理,其他的就是窗口布局和功能完善了;首先:计算器需要一个显示按键结果的Te...
简易计算器不需要很高深的算法,对于数字计算的唯一要求就是在除数为零的时候要加以判断和处理,其他的就是窗口布局和功能完善了;首先:计算器需要一个显示按键结果的TextField部件,再就是添加很多Button了;为了界面的美观,为Frame添加两个panel,一个布局用BorderLayout.NORTH,另一个用GridLayout分成均等的几行几列;窗口的整体布局就基本成形了。剩下的为Button添加事件及响应事件的结果,编写程序实现。-simple calculators do not need high deep algorithm, figures for the only requirement is the divisor to zero when the judgment and, The rest is window layout and functions; First : need a calculator button shows the results of the TextField component, Then, it took a lot of added Button; To the beautiful interface, Frame added two panel, BorderLayout.NORTH using a layout, Another use GridLayout divided into equal out several lines; window on the overall layout of the basic shaping. Button left to add events and respond to the findings, preparation processes.
- 2022-01-22 13:27:23下载
- 积分:1
-
ocuments and Settings administrator.X UELI.000 Desktop source (end text)...
ocuments and Settingsadministrator.XUELI.000桌面源程序(终稿)第2章C210SortFromBigToSmall.java"
-ocuments and Settings administrator.X UELI.000 Desktop source (end text) Chapter 2 C210 SortFr omBigToSmall.java "
- 2023-07-07 05:50:03下载
- 积分:1
-
不足千行代码就能实现俄罗斯方块的基本功能。有兴趣的朋友可以把他的功能扩
展下。基础学习不错!...
不足千行代码就能实现俄罗斯方块的基本功能。有兴趣的朋友可以把他的功能扩
展下。基础学习不错!-Less than a thousand lines of code will be able to achieve the basic functions of the Russian box. Interested friends can put him under the function of the expansion. Learn basic good!
- 2022-06-21 12:51:32下载
- 积分:1
-
Notepad realize phone features, with RMS system architecture to achieve is to le...
实现手机的记事本功能,用RMS系统结构实现
是学习RMS不错的代码-Notepad realize phone features, with RMS system architecture to achieve is to learn from good RMS code
- 2022-08-10 05:03:24下载
- 积分:1
-
一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考...
一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考-a free CA, EJB-based platform, the teacher asked us to test,"s share is now out for our reference
- 2022-04-24 13:11:06下载
- 积分:1