登录
首页 » Java » Employee

Employee

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

  • CListCtrl可以有多种风格,这次我用ICON类型来作一个例子序,ICON加上文字简直COOL极了...
    CListCtrl可以有多种风格,这次我用ICON类型来作一个例子程序,ICON加上文字简直COOL极了-CListCtrl can have many styles, I use this type of ICON as an example of procedures, ICON words simply add a very COOL
    2022-03-19 08:09:00下载
    积分:1
  • socket2 callback standard model
    socket2 callback 标准模型-socket2 callback standard model
    2023-06-01 12:55:03下载
    积分:1
  • GenericServlet
    GenericServlet类,对于学习javaweb,这个类很重要所以要了解去原理。(GenericServlet class, for learning javaweb, this class is very important so understand the principle.)
    2018-05-06 09:25:27下载
    积分:1
  • Cpp1
    用C语言编写的简易学生信息管理系统,可以实现成绩的增删改查排序(A Simple Student Information Management System written in C Language can realize the addition, deletion, alteration and ranking of grades.)
    2019-06-04 09:44:45下载
    积分:1
  • Hpop
    VC++卫星精密定轨(HPOP)程序,采用高阶精确力学模型。(VC2003)(VC++ satellite orbit determination procedures, the use of high precision mechanical model.)
    2021-03-18 20:19:19下载
    积分:1
  • ImmutableMultiset
    An immutable hash-based multiset. Does not permit null elements.
    2013-12-03 09:39:33下载
    积分:1
  • mp3
    The first task at hand is to set up the endpoints appropriately for this example. The following code switches the CPU clock speed to 48 MHz (since at power-on default it is 12 MHz), and sets up EP2 as a Bulk OUT endpoint, 4x buffered of size 512, and EP6 as a Bulk IN endpoint, also 4x buffered of size 512. This set-up utilizes the maximum allotted 4-KB FIFO space. It also sets up the FIFOs for manual mode, word-wide operation, and goes through a FIFO reset and arming sequence to ensure that they are ready for data operations(The first task at hand is to set up the endpoints appropriately for this example. The following code switches the CPU clock speedto 48 MHz (since at power-on default it is 12 MHz), and sets up EP2 as a Bulk OUT endpoint, 4x buffered of size 512, and EP6as a Bulk IN endpoint, also 4x buffered of size 512. This set-up utilizes the maximum allotted 4-KB FIFO space. It also sets upthe FIFOs for manual mode, word-wide operation, and goes through a FIFO reset and arming sequence to ensure that they areready for data operations)
    2007-12-26 19:22:07下载
    积分:1
  • etl437-chapitre_3
    Chapitre 3 : Mécanismes de claquage des isolants gazeux
    2014-06-10 23:18:26下载
    积分:1
  • BDXJ
    变电站巡检系统,内容完全 变电站巡检系统,内容完全(Substation inspection system, the contents of substation inspection system, the contents of)
    2007-09-06 16:26:55下载
    积分:1
  • 完美的完成端口客户端.性能稳定.已经测试过.希望给大家一点借鉴...
    完美的完成端口客户端.性能稳定.已经测试过.希望给大家一点借鉴-perfect completion ports client. Stable performance. Already tested. We hope to learn from 1:00 a.m.
    2022-03-06 04:12:40下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载