登录
首页 » Java » Employee

Employee

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

代码说明:

  创建四个类,分别为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 个回复

  • 动态创建数组类
    动态创建数组模板,可以用该模板动态创建所需要的数组类(Dynamic Creation of Array Templates)
    2020-06-24 03:00:02下载
    积分:1
  • Microsoft VC++7.0 Change 具体使用解压后即可得知
    Microsoft VC++7.0 Change 具体使用解压后即可得知-Microsoft VC 7.0 Change specific use to get unpacked
    2022-10-31 14:55:03下载
    积分:1
  • DicomDisplay
    vtkImageViewer2实现的放大,缩小,window color/window level调整(vtkImageViewer2 achieve zoom in, zoom, window color/window level adjustment)
    2013-07-13 13:02:54下载
    积分:1
  • 取MAC IP 机器名示例源码
    取MAC IP 机器名示例源码-MAC IP machine name check sample source
    2022-06-16 19:53:17下载
    积分:1
  • Windows 下的48路IO卡驱动及应用 IO48-DIO
    windows 下的48路IO卡驱动及应用。(a 48 io ports driver of windows)
    2020-06-22 09:00:02下载
    积分:1
  • onvif-discovery_cs
    onvif协议 源代码 实例 vc++ discovery_cs(onvif protocol source code examples vc++ discovery_cs)
    2014-04-11 19:51:38下载
    积分:1
  • lab4
    1.定义学生Bean,按照JavaBean设计规范,命名get和set方法. 2. Bean的定制事件验证实验 3. Bean属性的绑定属性验证实验 4. Bean属性的约束属性验证实验 *5.BeanInfo类 (1 Definitions students Bean, in accordance with the design specifications JavaBean naming get and set methods. 2. Bean custom event validation experiments 3 binding properties Bean attribute verification experiment 4 Constraints property validation experiments Bean property * 5.BeanInfo class)
    2014-06-01 11:49:19下载
    积分:1
  • 网络一级拓朴构建源码,可以发现局域网内的路由器与交换机
    网络一级拓朴构建源码,可以发现局域网内的路由器与交换机-Construction of backbone network topology diagram C++ source code
    2022-10-06 15:45:03下载
    积分:1
  • 虽然是窗口时代,但有时候系统自带的一些DOS小命令还是非常的实用,就像PING一样,它可以很方便的 让人知道你的连网状态。这个经过改造PING命令,比...
    虽然是窗口时代,但有时候系统自带的一些DOS小命令还是非常的实用,就像PING一样,它可以很方便的 让人知道你的连网状态。这个经过改造PING命令,比系统自带的更强悍,它的窗口更人性化,省去了原来PING命令繁琐的打开步骤,而且可以按指定次数连续Ping,还可以按给定的数量连续PING。用起来非常方便。-Networking people know your status. The revamped PING command, the system comes with more than tough, it is more user-friendly window, eliminating the original PING command to open cumbersome steps, and can specify the number of times according to a continuous Ping, also can be given the number of consecutive PING. Is very convenient to use them.
    2022-09-15 14:05:04下载
    积分:1
  • VC开发的一个带附件的邮件发送程序,具体代码请看包装。
    用VC开发的一个能带附件的邮件发送程序,具体代码请参见源代码部分。-VC developed a band annex to the mail process, the specific codes, please see part of the source code.
    2022-09-13 05:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载