登录
首页 » Java Develop » 在作业1的Employee和EmployeeDemo两个类基础上修改 1,重写Employee类的toString方法,返回Employee类的相关信...

在作业1的Employee和EmployeeDemo两个类基础上修改 1,重写Employee类的toString方法,返回Employee类的相关信...

于 2023-05-31 发布 文件大小:3.97 kB
0 185
下载积分: 2 下载次数: 1

代码说明:

在作业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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 使用JDBC实现JAVA数据库GUI编程。
    使用JDBC实现JAVA数据库GUI编程。-JDBC database implementation using JAVA programming GUI.
    2022-04-22 09:46:04下载
    积分:1
  • 创建组报告的能力,并授予用户访问的可行性报告
    The ability to create groups of reports, and grant users access to reports by group. The ability to generate reports as PDF, XLS, HTML, and CSV files. The ability to generate bar, pie and xy charts for inclusion in reports. The ability to schedule and email PDF, XLS, and CSV reports. The ability to define reusable report parameters. Available parameter types include Date, Text, and Query Parameters. The ability to create multiple DataSources for use in generating reports. Support for JNDI DataSources and internal connection pooling via Commons-DBCP is included. The ability to upload and hot deploy new reports. Web based administration of users, groups, reports, parameters, and datasources. Cross platform database support via Hibernate based persistence layer. Available in a preconfigured bundle with Apache Tomcat. - The ability to create groups of reports, and grant users access to reports by group. The ability to generate reports as PDF, XLS, HTML, and CSV files. The ability to genera
    2023-01-29 08:35:04下载
    积分:1
  • 一个功能比较全的JMail程序
    一个功能比较全的JMail程序 -a functional comparison of the whole procedure JMail
    2022-01-24 15:56:40下载
    积分:1
  • 单点登录实现,采用sessionid记录登录状态,
    单点登录实现,采用sessionid记录登录状态, -Single sign-on implementation, using sessionid records logged,
    2022-07-11 18:47:09下载
    积分:1
  • 使用dom2,sax2解析xml,使用解析器生成、转化xml,以及利用JDBC将xml中的数据与数据库交互...
    使用dom2,sax2解析xml,使用解析器生成、转化xml,以及利用JDBC将xml中的数据与数据库交互-use dom2, allows analytic xml, use parser generation, conversion xml, and the use of JDBC to the xml data with interactive database
    2023-05-02 02:25:02下载
    积分:1
  • ImageViewer
    CoreJava ImageViewer-ImageViewer
    2022-08-17 08:28:16下载
    积分:1
  • 一只手
    一个手工编写的purejava学生成绩管理系统(运用Access数据库),提供了强大的学生成绩管理管理功能,方便管理员对学生成绩等信息的添加.修改.删除.查询.汇总.统计等操作。内含详细的设计说明文档。-A hand-written score students purejava management system (using Access database) to provide students with a powerful management grade management functions for administrators and other information on the score of the students added. Modification. Delete. Query. Summary. Statistics operation. Includes detailed design documentation.
    2022-05-09 09:01:25下载
    积分:1
  • 一个用java实现的ICQ的源程序
    一个用java实现的ICQ的源程序-a java with the realization of the source ICQ
    2022-12-01 12:00:08下载
    积分:1
  • 银行atm 实现存取款和转帐拉萨的肌肤
    银行atm 实现存取款和转帐拉萨的肌肤-the bank of atm skdf z dkf ds
    2022-04-11 06:44:51下载
    积分:1
  • TC20
    TC20―软件包-TC20-package
    2022-12-11 06:20:03下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载