登录
首页 » Java » Employee

Employee

于 2013-11-27 发布 文件大小:16KB
0 226
下载积分: 1 下载次数: 6

代码说明:

  创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。 (Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)

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

发表评论

0 个回复

  • openphase-0.3.0.tar
    C++语言编写的用于相场计算的用于合金凝固的源程序 ,属于国外开源软件代码(fortran language source code for the phase-field calculations for alloy solidification, code complete)
    2020-08-24 09:08:15下载
    积分:1
  • AbsoluteFileBackupHelper
    Like FileBackupHelper, but takes absolute paths for the files instead of subpaths of getFilesDir() Source Code for Java Script.
    2013-10-02 01:36:45下载
    积分:1
  • jabber 配套测试工具(2)
    jabber 配套测试工具(2)-jab_simul 配合testsuite使用,怎么用就不用我在这里 多说了吧-jabber matching test tools (2)- jab_simul tie TestSuite use, not how I used it here to say all right
    2022-09-15 07:50:03下载
    积分:1
  • 利用vc实现的局域网文件传输,共分为客户端和服务器端两部分,该部分是文件传输的服务器端,采用了TCP/UDP协议,可扩展到net网络传输!...
    利用vc实现的局域网文件传输,共分为客户端和服务器端两部分,该部分是文件传输的服务器端,采用了TCP/UDP协议,可扩展到net网络传输!-use vc achieve LAN file transfer, is divided into client and server-side two, The file transfer is part of the server using the TCP/UDP protocol, which can be expanded to net network transmission!
    2022-02-02 18:29:08下载
    积分:1
  • Java写的人机井字棋游戏
    说明:  用Java编写的人机井字棋游戏,用户可选择先手或后手,系统自动判断输赢。ps:纯属兴趣爱好。(Java JinZi Chess Game)
    2020-06-19 01:40:01下载
    积分:1
  • jdk_chianese
    JavaAPI中文 我看到许多论坛的朋友, 寻找 中文的javaAPI, 无奈sun没有提供中文的,这是SUN对中国程序员的轻视,有日文,为什么不能有中文,小日本为什么不用看英文。 我利用JavaWebStudio里提供的, 制作chm格式的, 希望对大家学习java提供方便。 Orient Software Company cmh制作者 碧海蓝天 e_mail:uit3e@yahoo.com.cn 制作日期2004年7月23日 (I see many forum friends, looking for the English javaAPI, but the English did not provide sun, SUN This is to underestimate the Chinese programmer, there is Japanese, why should not there is English, why not look small in Japan in English. I use to provide the JavaWebStudio, production chm format, and they hope to facilitate the U.S. study java. Orient Software Company cmh producers of water, blue sky e_mail: uit3e@yahoo.com.cn production date of July 23, 2004)
    2009-03-14 19:26:18下载
    积分:1
  • LDAP目录访问协议窗口光型和样品!
    Windows LDAP轻目录访问协议类及其示例!-Windows LDAP Directory Access Protocol light type and sample!
    2022-04-15 11:04:15下载
    积分:1
  • PWM-PQagain
    说明:  这是一个关于pq控制的仿真过程,使用PSCAD仿真的,可以运行(This is a simulation process on the pq control, the use of PSCAD simulation, you can run)
    2011-03-25 17:09:26下载
    积分:1
  • stackaqueue
    java 实现的基础数据结构栈和队列,仅供有需要的同学参考(java code of stack and queue )
    2014-03-25 13:21:37下载
    积分:1
  • 这freemed传真传输接口,并利用hylaf发送传真…
    This the FreeMED fax transmission API, and is used to send faxes using the HylaFax fax system
    2022-07-03 17:05:51下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载