登录
首页 » Java » Employee

Employee

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

  • corner-detection
    说明:  这是在 Ruadhan 提供的源代码基础上做了一些修改,可以检测图像中的角点。应用环境是:OPENCV BETA 4,VC6 编译运行通过。(Ruadhan This is the basis of the source code to do some modifications, can detect images of the corner. Application Environment : OPENCV BETA 4, VC6 compiler running through.)
    2006-04-26 16:45:25下载
    积分:1
  • Grid
    一个VB6编写的表格控件,对与我们学习控件编写很不错。(Write a VB6 grid control, we can learn to write and very good control.)
    2016-04-06 10:55:19下载
    积分:1
  • dos 下面的tcp源码
    dos 下面的tcp源码-dos following tcp FOSS
    2022-02-14 05:12:10下载
    积分:1
  • beisaier_line
    画5阶的贝塞尔曲线,与windows的贝塞尔曲线屏保差不多(painting five bands Bessel curve, and the windows of almost Bessel curve Screen Saving)
    2007-03-08 21:26:51下载
    积分:1
  • DSH
    Deep Supervised Hashing for Fast Image Retrieval
    2019-06-17 22:18:08下载
    积分:1
  • 6995529
    信道编码turbo码,编码,译码程序,C语言编写()
    2018-06-10 07:50:28下载
    积分:1
  • zorro_ids
    convert the default codepage to Unicode.
    2015-10-20 12:15:01下载
    积分:1
  • raytrace
    地震波动方程 射线追踪 波前追踪 附有文档 复杂介质常梯度射线追踪方法(Seismic wave equation wave-front tracking ray tracing of complex media files with regular gradient ray-tracing method)
    2009-05-13 09:07:29下载
    积分:1
  • Words
    自然语言分词系统,人工词性、词的分类、词语特征等标注。用于深度学习使用。(Natural language participle system)
    2018-05-24 17:22:29下载
    积分:1
  • 窗户照射进来的插座在I/O(输入/输出)应用运营管理的…
    在 Wi n d o w s套接字应用程序中对 I / O(输入/输出)操作进行管理。Wi n s o c k分别提供了“套接字模式”和“套接字 I / O模型” ,可对一个套接字上的 I / O行为加以控制。其中,套接字模式用于决定在随一个套接字调用时,那些 Wi n s o c k函数的行为。而另一方面,套接字模型描述了一个应用程序如何对套接字上进行的 I / O进行管理及处理。-Wi ndows socket at the application of I/O (input/output) operations management. Provide the Wi nsock " socket model" and the " socket I/O model" may be a socket on the I/O to control behavior. Among them, the model used to determine the socket with a socket call in, those acts of the Wi nsock function. On the other hand, describes the socket model how an application on the socket I/O for the management and treatment.
    2022-03-01 23:49:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载