登录
首页 » Java » Employee

Employee

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

  • OPF
    利用内点法,以5节点标准系统为例,求解最优潮流(Solving the optimal power flow)
    2021-04-17 20:08:52下载
    积分:1
  • LCMV
    说明:  基于LCMV准则的波束形成算法。附带CBF波束形成与LCMV波束形成的比较,LCMV能在干扰处形成零点抑制干扰。(Beam forming algorithm based on LCMV criterion. Compared with CBF beamforming and LCMV beamforming, LCMV can form zero suppression interference at the interference location.)
    2021-03-14 18:39:23下载
    积分:1
  • 关于通信ip路由表的VC++驱动源码
    关于通信ip路由表的VC++驱动源码 -With regard to communications ip routing table-driven source code VC++ communications ip routing table on the VC++ driver source
    2022-08-18 06:32:05下载
    积分:1
  • 局域网里文件传送
    局域网里文件传送-LAN file transfer
    2023-05-08 05:55:02下载
    积分:1
  • ibatis2.0Sample
    说明:  ibatis 的jpetstore对初学者很有帮助值得收藏(ibatis helpful for beginners jpetstore the collection is worth)
    2009-07-31 14:55:23下载
    积分:1
  • 123
    易语言彩票源码 获取网站数据 并且导出excel文档(Easy language source code for the lottery site data and export excel document)
    2013-07-30 18:46:11下载
    积分:1
  • threadtest
    java多线程示例,可以直接运行,希望对大家有所帮组Thread(java multithreading example, can run, we hope to help set Thread)
    2011-05-01 00:49:04下载
    积分:1
  • chat
    java实现简单的聊天功能,一个服务端和一个电脑客户端与安卓客户端(java achieve a simple chat, a server and a client computer and Android client)
    2015-01-04 09:16:43下载
    积分:1
  • 基于API的Socket动态库的导出函数。
    基于API的Socket动态库的导出函数。-based on the Socket API DLL function of the derived.
    2022-02-11 11:42:47下载
    积分:1
  • Jdeveloper
    jdeveloper开发的两个功能类,对于一些常用的方法,进行了封闭,非常有用。(Jdeveloper development two functional class after encapsulation, very useful for Java ee developers.)
    2015-02-14 11:15:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载