登录
首页 » Java » Employee

Employee

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

  • walkthrough1
    switching the lights debouncing , toggle
    2010-02-10 03:07:08下载
    积分:1
  • 局域网内的一个简单的聊天序,分为服务器端与客户端两部分...
    局域网内的一个简单的聊天程序,分为服务器端与客户端两部分-LAN within a brief chat procedures, divided into server and client part 2
    2022-04-17 04:26:40下载
    积分:1
  • MySalesAftManager
    采用java写的销售管理系统,实现对货物的登记,查找,修改和删除,具有图形化界面,Swing界面编程,数据保存在sql server数据库中(Written by Java sales management system, to achieve the registration of goods, search, modify and delete, with a graphical interface, Swing programming interface, data stored in the server SQL )
    2016-04-19 16:10:26下载
    积分:1
  • frmGoodsSellDetail
    说明:  HotelScheduler-maste
    2020-06-25 03:40:01下载
    积分:1
  • matlabhaffman
    基于哈夫曼编码的图像压缩编码程序设计 很好啊(huffman)
    2009-12-05 19:52:16下载
    积分:1
  • forum.0.8.1
    nemesis forum -- JSP(nemesis forum- JSP)
    2009-06-03 10:26:07下载
    积分:1
  • ShowFMQCeshi
    C的图形画法,已经投入使用。可参考C的图形画法,已经投入使用。可参考(C graphics draw method, has been put into use. Can refer to C graphics draw method, has been put into use. May refer to)
    2009-03-10 15:02:53下载
    积分:1
  • LgK2SRpv
    易语言目录文件操作模块源码,应用程序编程源码,很好的参考资料。(Easy language source code directory file operation module, application programming source code, a good reference.)
    2013-11-06 10:16:52下载
    积分:1
  • 基于Libpcap实现的局域网嗅探抓包发包解析工具
    说明:  基于Libpcap实现的局域;网嗅探抓包发包解析工具.(Packet sniffing and packet capturing ;analysis tool based on Libpcap.)
    2020-07-04 20:00:02下载
    积分:1
  • 基于UDP MFC环境
    UDP MFC 包含服务器和客户端,  本实验设计内容是:设计一个程序,实现聊天功能,要求有客户端和服务器端。客户端能实现消息的输入和发送、接收消息、连接服务器与断开连接等基本功能;服务器端要求能收发信息、保存客户端的IP信息地址、将接收到的消息向所有客户端转发等基本信息。
    2022-11-27 05:40:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载