登录
首页 » Java » Employee

Employee

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

  • 十分Cool的序,一个网络工具箱,可以实现包括主机察看、网络测速、Ping、段口扫描、路由跟踪等功能。不可不看。...
    十分Cool的程序,一个网络工具箱,可以实现包括主机察看、网络测速、Ping、段口扫描、路由跟踪等功能。不可不看。-The procedure is very Cool, a network toolbox can be achieved including mainframe View, Web Speed, Ping, paragraph I scan, routing tracking functions. Can not see.
    2022-05-21 20:27:54下载
    积分:1
  • 服务器端通过socket()系统调用创建一个Socket数组后(即设定了接受连接客户的最大数目),与指定的本地端口绑定bind(),就可以在端口进行侦听list...
    服务器端通过socket()系统调用创建一个Socket数组后(即设定了接受连接客户的最大数目),与指定的本地端口绑定bind(),就可以在端口进行侦听listen()。如果有客户端连接请求,则在数组中选择一个空Socket,将客户端地址赋给这个Socket。然后登录成功的客户就可以在服务器上聊天了。-Server-side through the socket () system call to create a Socket after the array (that is set to receive the maximum number of connected customers), with a specified local port to bind bind (), will be able to listen on port listen (). If the client has to connect the request, then select an empty array Socket, the client address assigned to the Socket. And then sign in the success of customers can chat on the server.
    2023-08-19 03:20:03下载
    积分:1
  • erp-framework-master
    说明:  erp系统,包含生产,销售,以及一系列功能,有BUG(Erp system, including production, sales, and a series of functions, has bugs)
    2020-08-13 16:30:43下载
    积分:1
  • flowfun
    流函数,通过uv风场反演出流函数和势函数。(Stream function by u v wind inversion stream function and potential function.)
    2020-11-08 23:09:47下载
    积分:1
  • 安全焦点Xsniff嗅探工具的外壳序,需要安全焦点Xsniff来配合运行。 原创者:djhui...
    安全焦点Xsniff嗅探工具的外壳程序,需要安全焦点Xsniff来配合运行。 原创者:djhui -Security focus Xsniff shell sniffer tools, necessary to cope with the security operation Xsniff focus. Director: djhui
    2022-01-22 00:56:17下载
    积分:1
  • vs_net_ver298
    VS.NET编程源码。包含很多VC++.NET和VB.NET源码(-VS.NET programming source code. It includes a lot source codes of VC++.NET and VB.NET.)
    2004-05-29 12:41:49下载
    积分:1
  • Polarplots
    polar plots in control system
    2015-04-14 14:24:32下载
    积分:1
  • kechengsheji
    有关数据库,我认为数据库很重要,要认真学,我上传的是我们老师给我们的东西,你们看看对你们有用吗?(The database, I think the database is very important to carefully study, I uploaded is our teacher gave us something, you look to you useful?)
    2010-11-09 21:34:41下载
    积分:1
  • chord-0.1-20060828
    chord 源码 http://pdos.csail.mit.edu/chord/(chord source http://pdos.csail.mit.edu/chord/)
    2007-12-26 22:24:12下载
    积分:1
  • sms-TC35
    TC35 短信猫开发包,可以参考使用,有不懂的地方可以联系沟通学习。(TC35 SMS cat kit, you can use and reference, there do not know where you can contact communication and learning.)
    2011-01-01 13:45:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载