-
在作业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
-
打开spider.exe
open spider.exe
- 2022-03-31 16:00:24下载
- 积分:1
-
Java编程源代码,带链接的滚动字幕[修改名称及链接][共1步]
Java编程源代码,带链接的滚动字幕[修改名称及链接][共1步]-Java programming source code, with a link scrolling captions [change the name and link] [Step 1]
- 2022-06-16 11:06:39下载
- 积分:1
-
该文件为编译器词法分析的代码
该文件为编译器词法分析的代码-document for the compiler code lexical analysis
- 2022-03-23 22:07:09下载
- 积分:1
-
two simple file system software : the development environment : jdk1.60 windows...
简单的二级文件系统
软件说明:
开发环境:windows操作系统 jdk1.60
开发工具: jbulider2006
软件简要说明:本软件使用的是java编程语言。基本实现对系统的所有文件,文件夹的基本操作(新建,删除,复制,修改等等)-two simple file system software : the development environment : jdk1.60 windows operating system development tools : jbulider2006 software Brief Description : This software is used by the java programming language. Implementation of the basic system of all documents, folders basic operations (new, delete, copy, modify, etc.)
- 2022-05-23 21:16:43下载
- 积分:1
-
蚂蚁觅食算法
蚂蚁觅食算法-ants foraging algorithm 111111111111111111111111111111
- 2023-06-09 20:50:04下载
- 积分:1
-
里面是java applet小应用程序的实例
里面是java applet小应用程序的实例-inside java applet is a small example of the application procedures
- 2022-01-25 14:51:46下载
- 积分:1
-
摄氏温度和华氏温度转换
摄氏温度和华氏温度转换-Celsius and Fahrenheit temperature of temperature change
- 2022-07-09 03:31:15下载
- 积分:1
-
EJB设计模式(代码).zip
EJB Design Patterns (Code).zip
- 2022-06-20 21:45:07下载
- 积分:1
-
日期类,挺好用的一个类
日期类,挺好用的一个类-date category of a very good category
- 2022-04-10 10:27:53下载
- 积分:1