登录
首页 » Java » Employee

Employee

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

  • SystemDll
    SystemDll,抱括截获用户输入,且寄生成系统外壳程序,将其存成文件,发送到指定的EMAIL里...不要用于非法,一切与本人无关(SystemDll, have intercepted, including user input, and parasitic into the system shell to be saved as documents sent to the specified EMAIL ri ... not used in the illicit, and all I had nothing to do with)
    2008-01-04 09:32:00下载
    积分:1
  • 搭建redis环境 分析&环境搭建
    说明:  搭建redis环境搭建,以及查询数据库 缓存优化(Building redis environment)
    2020-06-25 01:00:01下载
    积分:1
  • visual basic 初学者的教
    说明:  visual basic 初学者的教程,vb图形界面的设计。(visual basic tutorial for beginners, vb graphic interface design.)
    2020-03-23 09:35:06下载
    积分:1
  • windows socket网络之io完成端口模型的例子
    windows socket网络编程之io完成端口模型的例子-windows socket network programming on the io completion port model examples
    2022-08-12 21:53:32下载
    积分:1
  • 检查一个tcp或udp端口是否被占用
    检查一个tcp或udp端口是否被占用-Check if a tcp/udp port has been used
    2022-03-26 13:56:18下载
    积分:1
  • Dual_Channel_Signal_Process
    基于labview的双通道数据采集处理系统,双界面,含置滤波器(巴特沃斯,切比雪夫可选),含加窗数据处理,支持数据记录并回放,用了信号源仿真,只需把信号源换成输入即可(Labview-based dual-channel data acquisition and processing system, dual interface, including home filters (Butterworth, Chebyshev optional), containing windowed data processing, data recording and playback support, with a source simulation, simply put input signal source can be replaced)
    2014-10-30 17:13:33下载
    积分:1
  • JAVA-professional
    JAVA专业术语集合,包含Java中遇到的大部分英文解释,可以很好的对Java中遇到的问题解决。(JAVA jargon collection)
    2012-02-08 18:59:16下载
    积分:1
  • AI
    说明:  this is a tic-tac-toe game.... no one can win...try it.. :)
    2009-07-11 15:18:28下载
    积分:1
  • 0940
    云轩阁小说目录采集易语言源码,程序结合易语言扩展界面支持库和正则表达式支持库,调用易语言模块实现云轩阁小说目录的采集。(Yunxuan Court fiction catalog collection easy language source code, the program combines easy language extension interface supports regular expressions support libraries and library calls easy language module collection Yunxuan Court novels directory.)
    2014-09-24 10:51:59下载
    积分:1
  • 由一个外国人创建的超强WEB界面,绝是强啊`~
    由一个外国人创建的超强WEB界面,绝是强啊`~-Created by an alien super-WEB interface is not strong ah `~
    2023-07-08 21:35:07下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载