登录
首页 » Java » Employee

Employee

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

  • Leveling net Adjustment
    测量平差领域中的水准网平差,界面编程,程序可以直接运行,附有示例文件和说明。(In the field of measurement adjustment, leveling network adjustment, interface programming, the program can be run directly, accompanied by examples of documents and instructions.)
    2017-10-25 21:28:49下载
    积分:1
  • 查看网卡信息,可以看IP,网关,子网码。
    查看网卡信息,可以看IP,网关,子网码。-View card information, can see IP, gateway, subnet yards.
    2022-04-23 18:34:18下载
    积分:1
  • socket
    socket编程基于c#开发,通过gprs进行通讯,异步通讯方式,具有一定的学习研究价值;适合新手了解学习
    2022-06-01 07:31:59下载
    积分:1
  • seismic_travel_time
    差分程函方程,得到简单的地震传播的时间场分布(The difference equation is used to get the time field distribution of simple seismic propagation.)
    2018-10-31 10:42:48下载
    积分:1
  • FTP代码。使用API实现通讯,速度快,稳定,代码完整。
    FTP代码。使用API实现通讯,速度快,稳定,代码完整。-FTP code. Realize the use of API communication, fast, stable, and code integrity.
    2023-07-14 21:20:03下载
    积分:1
  • ftpTest
    ftp客户端 可以使用特有的API实现上传文件,并且创建唯一文件夹进行传送(ftp client )
    2009-10-20 10:36:39下载
    积分:1
  • FaceID_java_demo
    汉王人脸通FaceID JAVA SDK开发包示例程序源代码,包含通用语言版本。(Hanvon FaceID SDK, JAVA DEMO source code included.)
    2020-06-16 20:40:02下载
    积分:1
  • jxta是sun公司提出的支持p2p网络的服务架构,此序包是用java写的doc!...
    jxta是sun公司提出的支持p2p网络的服务架构,此程序包是用java写的doc!-JXTA is the company"s support of peer-to-peer network architecture services, this package is written in java doc!
    2022-01-26 03:45:45下载
    积分:1
  • Samples
    此代码实现相机的抓取图像,实时采集,需要搭配海康威视SDK共同使用(This code realizes the capture image of the camera and real-time acquisition. It needs to be used together with Haikangwei SDK.)
    2020-06-25 17:00:02下载
    积分:1
  • 视频电话会议全站源码 (价值十万)。测试通过。我非常满意的源序。...
    视频电话会议全站源码 (价值十万)。测试通过。我非常满意的源程序。-video conference call the station source (worth 100,000). Test. I am very satisfied with the source.
    2022-03-01 16:24:34下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载