登录
首页 » Java » Employee

Employee

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

  • StylesheetComposed
    Represents a stylesheet that has methods that resolve includes and imports.
    2014-06-19 10:17:33下载
    积分:1
  • Sun-JavaDemo
    Sun 公司最好的Java Demo例子码,对于初学者非常有用(java good demo)
    2013-10-16 16:51:28下载
    积分:1
  • SMTP邮件客户端
    SMTP邮件客户端程序-SMTP mail client program
    2023-06-12 06:40:03下载
    积分:1
  • design-pattern-(Java-version)
    23种设计模式的实现(Java 版),希望能给大家带来帮助!(23 the realization of the design pattern (Java version), the hope can bring you help! )
    2012-02-16 21:11:01下载
    积分:1
  • AbstractCharsetDecoderTestCase
    Super class for concrete charset test suites for Java.
    2013-10-05 08:22:42下载
    积分:1
  • COM
    COM组件的聚合,其中有两个组件,A为内部组件,B为外部组件(COM components aggregate)
    2010-12-24 14:49:04下载
    积分:1
  • UA-LDS
    说明:  The OPC Foundation has formally released the OPC Unified Architecture Local Discovery Server to the community.
    2020-06-21 02:40:01下载
    积分:1
  • OrderTickets
    一个用java和jsp以及servlet编写的网上订票系统(Order Tickets)
    2014-03-05 21:49:27下载
    积分:1
  • DE-ANN
    本程序用差分进化算法来优化神经网络,克服局部最优,使得全局最优,亲测可用(This program uses differential evolution algorithm to optimize neural network, overcome local optimum, make global optimum and pro-test available.)
    2019-05-24 21:07:49下载
    积分:1
  • FLASH素材源码
    FLASH素材源码-卡通人物-口袋怪物?ㄍㄈ宋?口袋怪物?ㄍㄈ宋?口袋怪物?ㄍㄈ宋?口袋怪物卡通人物-口袋怪物-FLASH source material-cartoon characters-pocket monster cartoon c haracters-pocket monster cartoon c haracters-pocket monster cartoon c haracters-pocket monster cartoon characters-pocket monster
    2022-12-02 11:40:03下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载