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

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

于 2023-05-31 发布 文件大小:3.97 kB
0 98
下载积分: 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记事本,可以实现类似于win记事本的功能-java notebook
    2022-04-16 08:47:50下载
    积分:1
  • JAVA编程思想(中英文加源代码),无论对初学者还是程序员都是好工具。...
    JAVA编程思想(中英文加源代码),无论对初学者还是程序员都是好工具。-JAVA programming ideas (in English and Chinese plus source code), both for beginners or programmers are good tools.
    2022-08-12 07:39:17下载
    积分:1
  • 通过powerdesigner的文件 生成java程序开发所需的资源文件、bean、from等。...
    通过powerdesigner的文件 生成java程序开发所需的资源文件、bean、from等。-powerdesigner java develop tools
    2022-07-28 00:07:33下载
    积分:1
  • use mapping arc method, output a statistical charts, "Yuan pie" and a...
    使用绘制圆弧的方法,输出一个统计图表“圆饼图”和一个“折扇”。 原始数据在数组Data中,这5个数据在圆饼图中为角度不同的扇形,各自角度的计算值分别为38、91、54、125、53,放在数组drgree中。第一个数据的扇形起始角start=0,用绿色画。第二个的起始角start=38,用蓝色画。最后一个的起始角start=308,用橙色画。 折扇的画法是:在左上角坐标(130,40),长150,宽80的椭圆区域内,从22度开始逆时针地画一个15度的扇性,再画一段15度的椭圆弧;然后交替地画扇形和圆弧。-use mapping arc method, output a statistical charts, "Yuan pie" and a "folding fans." The raw data in the array Data, this data in the five round pie for the fan perspective, the perspective of their respective values were calculated 38,91,54,125,53, on the array were drgree. No. 1 fan initial data Kok start = 0, green painted. The second start of the initial angle = 38, painted blue. A final start of the initial angle = 308, with orange painting. Folding fans of paint is : in the upper left corner coordinates (130,40), 150 long, wide oval region of 80, from 22 degrees to start painting an anti-clockwise 15 degrees fan, painting section 15 of ellipse; Then turn to the fan-shaped and painted arc.
    2023-01-04 04:00:02下载
    积分:1
  • java编的,轻松实现上载文件功能。带检查上传文件类型的功能。
    用java编的,轻松实现上载文件功能。带检查上传文件类型的功能。-Made with java, and easy to upload files feature. Upload files with the type of inspection functions.
    2023-01-27 20:35:03下载
    积分:1
  • tabtree eclipse good
    很好的一个现实表格树的 程序, 在java开发环境中直接运行-tabtree eclipse good
    2022-03-20 21:31:09下载
    积分:1
  • J2me game Super Crazy Ray flight power source, screenshots from the running poin...
    超级j2me飞行游戏疯狂雷电源代码,从运行截图来看,看着过瘾呀,而且附带了源代码,比较宝贵的J2me资源,Jad文件可以直接在诺机亚手机上运行,现在新出的手机一般都有支持哦-J2me game Super Crazy Ray flight power source, screenshots from the running point of view, watching enjoyable Yeah, it comes with source code, J2me more valuable resource, Jad files can be directly in the Snow machines run on mobile devices Asia, and now a new cell phone out of the general Oh, all support
    2022-01-25 15:11:15下载
    积分:1
  • it have the solution of maze problem
    it have the solution of maze problem
    2022-09-17 14:40:02下载
    积分:1
  • use the java use the java use the java
    使用java使用java使用java
    2022-06-30 10:31:51下载
    积分:1
  • javascipt特效源码及其示例。可直接COPY使用,非常方便
    javascipt特效源码及其示例。可直接COPY使用,非常方便-javascipt effects and sample source code.
    2023-01-20 06:10:04下载
    积分:1
  • 696518资源总数
  • 104600会员总数
  • 46今日下载