登录
首页 » Java » Employee

Employee

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

  • 这是我自己做的局域网内进行多播 通信的代码,打开时请先打开服务器段 才可正常运行。...
    这是我自己做的局域网内进行多播 通信的代码,打开时请先打开服务器段 才可正常运行。-This my own LAN within multicast communication code, opened post of the open server can run normally.
    2022-01-25 23:38:20下载
    积分:1
  • WINDOWS-VIA-C-CPP
    Windows核心编程(第5版) Windows Via C/C++ by Jeffrey Richter and Christophe Nasarre (Windows core programming (5th Edition) Windows Via C/C++ by Jeffrey Richter and Christophe Nasarre)
    2014-05-13 16:57:53下载
    积分:1
  • unicode-0.1.tar
    一个关于韩语unicode编码的C语言库文件(Korean unicode encoding a C-language library file)
    2007-09-29 15:04:49下载
    积分:1
  • vb_Auto_Update
    说明:  vb开发的自动升级程序。有自动更新,覆盖原文件等功能(vb development of the automatic upgrade process. Automatic update, overwrite the original files and other functions)
    2011-03-05 15:43:57下载
    积分:1
  • Resultsrankingtable
    成绩名次表,用汇编语言编的程序,很实用的.(Performance ranking tables, using assembly language of Procedure, it is practical.)
    2008-06-17 14:52:05下载
    积分:1
  • Typing
    说明:  初始化介面后,选择相应的数字键先取游戏速度。 例如:如想选择4、打字中级水平人群(Fast A challenge .Pay attention!)则按键盘上的数字键“4”,并按回车确定。 当字母下落时,按相对应的字母进行打字游戏,过关可重新选择游戏速度继续游戏,没有过关则按Enter键返回windows操作介面,游戏途中也可按Esc退出游戏介面。 (Initialization interface, select the corresponding number key to get the game speed. For example: If you want to choose 4, the intermediate level of typing crowd (Fast A challenge. Pay attention!) According to the number keys on the keyboard )
    2008-11-24 14:22:20下载
    积分:1
  • 163企业邮箱,邮箱源码系统。
    163企业邮箱,邮箱源码系统。-yiyueyouxiang
    2022-11-19 11:30:03下载
    积分:1
  • NovelSplitter
    用VB做的可以按照关键字体来分割小说文件,源码在网上得到的(VB to do with the body to be divided in accordance with the novel keyword documents, source code available online at)
    2009-03-28 12:49:30下载
    积分:1
  • ChipGenius
    U盘数据重写,可以想已损坏的U盘重新向里面写入新的数据,(U disk data rewriting can be damaged U disk to re-write new data to the inside,)
    2010-07-09 02:16:38下载
    积分:1
  • 驱动中不用协议驱动就可以获取mac地址的代码
    驱动中不用协议驱动就可以获取mac地址的代码-Driver protocol driver could not get mac address code. . . .
    2022-11-04 20:20:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载