文件名称:Java20080829

  • 所属分类:
  • JSP源码/Java
  • 资源属性:
  • [Java] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 4kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • tea****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

在作业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 of months to digest attribute 3, the following descr iption of the program reflects the general staff of the distribution of year-end bonus program for a monthly salary × 2Salesman: sales × 2+ monthly salary × 1.8Engineer: one year the number of months to digest × 300+ monthly salary × 2.5Clerk: monthly salary × 2.5
(系统自动生成,下载前可以参看下载内容)

下载文件列表

Java作业20080829参考代码

........................\com

........................\...\totyuedu

........................\...\........\c69

........................\...\........\...\a20080829

........................\...\........\...\.........\Clerk.java

........................\...\........\...\.........\Employee.java

........................\...\........\...\.........\EmployeeDemo.java

........................\...\........\...\.........\Engineer.java

........................\...\........\...\.........\Salesman.java

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org