登录
首页 » Java » Employee

Employee

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

  • MailingListInfo
    Simple JNI rar example
    2011-06-22 13:55:25下载
    积分:1
  • muav
    地震资料倾角滤波程序,能够用于地震资料的面波去除及频谱分析(FK filter in seismic data)
    2013-09-06 07:56:07下载
    积分:1
  • udp穿透SOCK5协议,穿透NAT,相信对大家有些用处
    udp穿透SOCK5协议,穿透NAT,相信对大家有些用处-udp penetrating SOCK5 agreement, NAT penetration, we believe that the usefulness of some
    2022-02-05 14:40:37下载
    积分:1
  • bucketsort
    说明:  用java实现的桶排序程序,本科期间java的实习(used to achieve the barrels sequencing procedures, undergraduate internships during java)
    2006-04-17 22:00:57下载
    积分:1
  • OPC COM ProxyStub MergeModule (x64) 105.1
    说明:  OPC COM ProxyStub MergeModule (x64) 105.1
    2020-06-11 13:56:48下载
    积分:1
  • iommu_64
    Texas Instrument s Bluetooth Driver For Shared Transport.
    2014-09-26 10:26:47下载
    积分:1
  • 基于poi的Excel和commons-csv的CSV操作组件
    说明:  基于poi的Excel和commons-csv的CSV操作组件,大大减少代码量,提高开发效率(Excel based on POI and CSV operating component based on commons-csv greatly reduce the amount of code and improve development efficiency)
    2020-06-19 11:20:01下载
    积分:1
  • IrdaMobilePCSrc
    基于Pocket PC 利用红外接口与手机通讯的C#程序,可以通过Pocket PC来管理手机(A C# program of Pocket pc communicate with mobile telephone using infrared ray. It can mangage mobile telephone by pocket pc.)
    2005-07-25 15:32:33下载
    积分:1
  • Soma-Client-source-code
    vc 2008 环境下编译 ,很早的游戏,圣者无敌客户端源码(Under vc 2008 compiler environment, Ancient game, soma client source code)
    2021-04-09 14:58:59下载
    积分:1
  • 自己写的SOCKET通信接口,含有消息响应机制
    自己写的SOCKET通信接口,含有消息响应机制-himself wrote the Socket Communication Interface, containing information response mechanism
    2023-05-13 00:35:03下载
    积分:1
  • 696518资源总数
  • 105661会员总数
  • 6今日下载