登录
首页 » Java » Employee

Employee

于 2013-11-27 发布 文件大小:16KB
0 120
下载积分: 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 个回复

  • 802.1x认证客户端认证,网络审计,the contents of the
    802.1x认证客户端,上网认证,内容审计-802.1x client authentication, Internet authentication, the contents of the audit
    2022-11-13 20:45:08下载
    积分:1
  • pain33
    this is a good java program
    2011-09-23 10:14:21下载
    积分:1
  • 动态显示当前网络的使用情况,包括接受数据速率和发送数据速率。...
    动态显示当前网络的使用情况,包括接受数据速率和发送数据速率。-dynamic display of current network usage, including data rate and send data rates.
    2022-12-31 07:35:04下载
    积分:1
  • port_dll
    vc++6.0开发的,可通过此动态链接库向串口发送命令、信息。可用于串口程序的开发,非常有用。(vc 6.0 development, through this dynamic link library sent to the serial order information. Serial procedures can be used for the development, very useful.)
    2007-04-20 10:17:54下载
    积分:1
  • MFC-Sample
    MFC详细的学习例子,很多实例供初学者学习(MFC detailed study examples, many examples for beginners to learn)
    2013-07-25 09:34:46下载
    积分:1
  • design
    design about GSM model sended and received communication appl
    2018-07-30 12:03:16下载
    积分:1
  • Double-Dutch-Night-Reading
    当我们手中拿着神兵利器——WinDbg时,一切都在掌握之中。这本书将要告诉您的不是全面的汇编知识或未公开的Windows秘密,而是怎么从这些貌似天书的汇编代码中,一探Windows底层的核心实现。 在开发中出现的问题,能不能从Windows自身找到答案?如果您正在这样思考,无疑本书是为您度身订做的。 (When we hand magic weapon- WinDbg all in the hands. This book will tell you is not a comprehensive compilation of knowledge or undisclosed secrets of Windows, but how from these seemingly bible assembly code, and to explore the core implementation of the Windows bottom. Problems in the development, we can not find the answer from Windows itself? If you are thinking this way, no doubt this book is tailor-made for you. )
    2012-11-29 23:06:54下载
    积分:1
  • 利用vc++6.0禁止网络上其他计算机的鼠标和键盘操作
    利用vc++6.0禁止网络上其他计算机的鼠标和键盘操作-vc 6.0 prohibit the use of other network computer mouse and keyboard operation
    2022-01-26 06:55:05下载
    积分:1
  • Calendar
    Java实现的日历 需要规定的一年的第一天开始的星期数 然后你就可以!(Java implementation of a calendar Need provisions to the beginning of the first day of the year the number of weeks Then you can!)
    2013-05-09 12:24:57下载
    积分:1
  • HGE engine was based on Hall and Network Interface SDK ~ can be used to develop...
    基于HGE引擎开发得大厅和网络接口SDK~可以用于开发自己得小网络游戏-HGE engine was based on Hall and Network Interface SDK ~ can be used to develop their own online games is too low
    2022-03-04 08:30:47下载
    积分:1
  • 696518资源总数
  • 104509会员总数
  • 10今日下载