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

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

于 2023-05-31 发布 文件大小:3.97 kB
0 277
下载积分: 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 个回复

  • java透明窗体
    java透明窗体 -java transparent form transparent form java
    2023-05-22 07:05:03下载
    积分:1
  • a Pong applet by zimardi
    a Pong applet by zimardi
    2022-06-20 23:27:23下载
    积分:1
  • 全国省份的JAVA编程源代码!很实用。
    全国省份的JAVA编程源代码!很实用。-provinces of the country JAVA programming source code! Practical.
    2023-03-22 13:05:03下载
    积分:1
  • 一本很好的jdk手册
    一本很好的jdk手册-a good manual jdk
    2022-09-22 07:10:09下载
    积分:1
  • servlet的jar包,下载后将其后缀名改为jar即可,这是比较全的servlet包,130多k。...
    servlet的jar包,下载后将其后缀名改为jar即可,这是比较全的servlet包,130多k。-servlet jar package, download the suffix after their names can be changed to jar it is rather the whole of the servlet package, more than 130 k.
    2022-07-08 21:10:39下载
    积分:1
  • A Celsius
    A Celsius-Fahrenheit-Kelvin -converter using NetBeans IDE.An application that converts between Celsius, Fahrenheit, and Kelvin degrees. For each unit, there is a text field showing the temperature, and a button that activates the conversion from that unit to the other units. Show 2 decimal places. -A Celsius-Fahrenheit-Kelvin-converter using NetBeans IDE.An application that converts between Celsius, Fahrenheit, and Kelvin degrees. For each unit, there is a text field showing the temperature, and a button that activates the conversion from that unit to the other units. Show 2 decimal places.
    2023-06-15 04:05:04下载
    积分:1
  • 继承与重载,定义包,java实验报告的结论。
    继承与重载、定义包 ,JAVA实验报告与大家分享.-inheritance and overloading, the definition package, experimental report JAVA share with you.
    2022-06-18 06:02:16下载
    积分:1
  • java基础知识学习视频
    java基础知识学习视频--www.mldn.com-java basic knowledge study--www.mldn.com
    2022-02-02 00:38:02下载
    积分:1
  • sdkfasdkf sfs sdfas
    阿飞说看得见事件扩大发货速度恢复是大家啊设计费技术设计费-sdkfasdkf sfs sdfas
    2022-03-20 17:50:03下载
    积分:1
  • java实现的swing 24点程序,非常直观,代码很精炼
    java实现的swing 24点程序,非常直观,代码很精炼-java achieve the 24 point swing procedures, very visual, very refined code
    2022-01-23 10:23:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载