登录
首页 » Java » Employee

Employee

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

  • 一个在网络环境使用的网络电视,使用html&asp开发
    一个在网络环境使用的网络电视,使用html&asp开发-in a network environment using network television, the use of html & Development asp
    2022-03-09 23:11:32下载
    积分:1
  • zhuatubiaoyuandaima
    用来抓图的一个源代码,帮助你学习一下windows方便的东西(to a source code, and help you learn about things convenient windows)
    2007-04-08 09:38:29下载
    积分:1
  • HexEditor7
    说明:  Literature and Packaging
    2020-06-26 00:08:34下载
    积分:1
  • cooec
    实现类似资源浏览器的树形目录, 作了一些功能添加()
    2018-05-15 09:34:47下载
    积分:1
  • 用vc做的自动升级序的源代码
    用vc做的自动升级程序的源代码-vc do with the automatic escalation procedures source code
    2022-09-13 08:40:03下载
    积分:1
  • Visualization
    通过COM接口,调用MediaPlayer的Visualization模块mpvis.dll,直接显示动态效果的例子。输入数据偷懒用的随机数不是声音数据。还有只能实现第一个效果,其他的无法得到接口对象,还没研究明白。可以用来做歌舞厅大屏幕的相关开发。(Through COM interfaces, called MediaPlayer the Visualization module mpvis.dll, directly reflect the dynamic effect of example. Lazy input data instead of random numbers used in the voice data. There can only achieve the first effect, the other interface object can not be, no research to understand. Can be used to do song and dance halls of the related development of the big screen.)
    2007-11-13 03:21:05下载
    积分:1
  • ascii
    VB写的Ascii字符的转换与显示实例,可以下载学习。(VB write Ascii character conversion and display examples, you can download to learn.)
    2013-07-11 07:56:36下载
    积分:1
  • myworkspace
    这是一个功能完善的苗木管理系统,具体分为5个模块,各个模块之间又有着数据之间的联系,通过数据库来存储数据,(This is a fully functional nursery management system, specifically divided into five modules, and each module has a link between between the data through a database to store data,)
    2014-05-24 13:04:53下载
    积分:1
  • IniAsliInventoriBarang
    Application for inventory developed with java
    2017-05-30 09:25:59下载
    积分:1
  • 97656
    VB DLL注入后子类化指定窗口,双击想放进托盘的窗口名。(The specified window VB of DLL after the injection of the subclass, double-click to put in the tray of the window.)
    2013-11-04 08:38:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载