登录
首页 » Java » Employee

Employee

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

  • 以太帧的解析和封装序 GCC下译通过
    以太帧的解析和封装程序 GCC下编译通过-Analysis of Ethernet frames and packaging procedures
    2022-06-21 09:48:55下载
    积分:1
  • MAX5980 Evaluation Kit
    基于MAX5980芯片的POE网络交换机设计(This article is done with the MAX5980 chip and the Ethernet network switch chip. The joint design scheme demonstrates the feasibility of the practical application of the POE chip combined with the network switch. The scheme is designed to be complete and stable, and can fully meet the normal operation of various types of powered devices of the back-end network.)
    2020-06-25 12:20:02下载
    积分:1
  • AirConditioningCode
    分布式温控系统基本要求 1. 中央空调是冷暖两用,但一次只能使用一种温控装置。当设置为供暖时,供暖温度控制在25°C~30°C之间,当设置为制冷时,制冷温度控制在18°C~25°C之间。 2. 中央空调具备开关按钮,只可人工开启和关闭,中央空调开启后处于待机状态。当关闭后,不响应来自房间的任何温控请求。当有来自从控机的温控要求时,中央空调开始工作。当所有房间都没有温控要求时,中央空调的状态回到待机状态。 3. 房间内有独立的从控空调机,但没有冷暖控制设备。从控机具有一个传感器,实时监测房间的温度,并与从控机的目标设置温度进行对比,决定是否需要制冷或制热,并向中央空调机发出请求。如果从控机发出的请求和中央空调设置的冷暖控制状态发生矛盾时,以中央空调机的状态优先,即中央空调机不予响应。 4. 从控机只能人工方式开闭,并通过控制面板设置目标温度,目标温度有上下限制。所有房间的初始目标温度由中央空调机设置,每个房间的空调机开启时要读取中央空调机预置的房间温度。温度升降范围应该在目标温度的上下1 °C。房间不考虑大小和管道的分布及大小问题,在达到目标温度后,房间的温度每分钟上下变化0.1°C。 (Basic requirements of a distributed temperature control system 1. Central air conditioning is the well-being of dual-use, but can only use a thermostat device. When set to heating, the heating temperature at 25 ° C ~ 30 ° C, and when set to cooling, the cooling temperature at 18 ° C ~ 25 ° C between. 2. Central air conditioning with switch buttons can only be manually opened and closed, central air-conditioning turned on in standby mode. When closed, do not respond to a request from the room of any thermostat. When the machine from temperature control from the control requirements, central air-conditioning work. When all rooms are no thermostat demand, central air condition back to standby. 3. Room independent from the control air conditioning, but no climate-control equipment. From the control machine with a sensor, real-time monitoring the temperature of the room, and with the goal set from the control unit compares the temperature to determine the need for cooling or he)
    2021-04-14 20:58:54下载
    积分:1
  • zygote
    If sendStdio is non-zero, the current process s stdio file descriptors will be sent and inherited by the spawned process.
    2013-06-22 10:58:14下载
    积分:1
  • zrrndo
    本程序为课程信息管理系统,,阐释了使用MFC来实现的过程,,(This procedure for the course information management system, and illustrates the process of using MFC to achieve that,)
    2017-06-25 20:14:01下载
    积分:1
  • 用C#实现的网络聊天序,分为客户端和服务器端两个序,可以用...
    用C#实现的网络聊天程序,分为客户端和服务器端两个程序,可以用-C# Internet chat program, divided into client and server-side two procedures can be used
    2022-08-05 19:44:00下载
    积分:1
  • Java 测试案例
    测试案例,改案例仅为测试使用,为借用文档,如侵权,请告知删除。(Test cases, change cases only for testing use, for borrowing documents, such as infringement, please inform deletion.)
    2020-06-19 03:40:02下载
    积分:1
  • mybatis02
    纯练习式mybatis,第二节小练习,适合初学者,还会第三节,期待下载(Pure exercise type mybatis, Section II small exercises, suitable for beginners, but also the third quarter, and look forward to download)
    2014-09-01 22:23:09下载
    积分:1
  • IVS
    Intelligent Video Surveillance documentation
    2019-02-16 20:45:13下载
    积分:1
  • C#版 IC卡读写实例源码,考勤系统源码(有截图)
    C#版 IC卡读写实例源码,考勤系统源码(有截图)
    2013-01-30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载