登录
首页 » Java » Employee

Employee

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

  • zGEP
    说明:  国内高人编写基因表达式编程(GEP)实现完全代码,完全面向对象,可以自己组合扩展,编制符合自己要求特定的编程代码。(The preparation of the domestic expert Gene Expression Programming (GEP) to achieve complete code, fully object-oriented, can expand their own portfolio, the preparation of their own request in line with the specific programming code.)
    2020-12-01 09:29:26下载
    积分:1
  • NIOTest
    Tests for some buffers from the java.nio package.
    2014-02-21 15:54:12下载
    积分:1
  • C4shu5jing
    C程序设计之四书五经,适合初学者学习C程序设计的一些规范,推荐。(C program design Four Books and Five Classics, for beginners learning the C program design parameters recommended.)
    2007-06-17 23:23:19下载
    积分:1
  • Graphic
    文件设备描述表的使用,利用兼容DC实现图形的保存和再现(Document device use, the use of DC-compatible graphics to achieve the preservation and reproduction)
    2009-04-09 21:33:23下载
    积分:1
  • AccountSetupOptionsTests
    Tests of basic UI logic in the AccountSetupOptions screen for Andriod.
    2013-10-06 00:29:52下载
    积分:1
  • shudentsushe
    寝室信息管理系统,简单的界面,很实用,基于java的寝室管理系统,access(student sushe manage system studentsushe)
    2014-06-08 14:16:22下载
    积分:1
  • Qt从入门到精通
    说明:  QT教程,从入门到精通,适合初学者使用,好东西。(QT tutorial, good thing)
    2020-07-02 22:25:36下载
    积分:1
  • qq4.0(www.xunleidown.net)
    SAVSD起到示范歌告诉三个额外是还是色图海容天天(vASDVASVWEA)
    2009-12-11 00:14:04下载
    积分:1
  • fractral
    用matlab软件计算分形维数的算法,可算出图像的分形维度(Algorithms for Calculating Fractal Dimensions)
    2021-03-23 18:19:15下载
    积分:1
  • GA
    说明:  本程序是用遗传算法实现的目标火力分配问题,绝对能运行处你想要的结果(This procedure is used to achieve the goal of genetic algorithm the distribution of power, absolutely you want to run the Department the results of)
    2009-06-02 16:12:39下载
    积分:1
  • 696518资源总数
  • 105949会员总数
  • 22今日下载