登录
首页 » Java » Employee

Employee

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

  • 1005
    北京大学online judge poj 1005
    2016-06-18 19:02:57下载
    积分:1
  • sjwl
    实现齿轮接触应力和弯曲应力分析,用于拟合最大应力值与个参数的关系 神经网络(Analysis of contact stress and bending stress of gear)
    2018-03-10 14:57:26下载
    积分:1
  • 自己使用的用于avr单片机的源序,包含ne2000兼容网卡的驱动...
    自己使用的用于avr单片机的源程序,包含ne2000兼容网卡的驱动-its own use for avr SCM source, including ne2000 compatible NIC drivers
    2022-02-20 14:37:55下载
    积分:1
  • 基于VC++的开发网络通讯工具emule序的源代码。
    基于VC++的开发网络通讯工具emule程序的源代码。-Based on VC++ development tools for network communication emule program source code.
    2022-08-26 10:45:14下载
    积分:1
  • multithreaded IP scanning foreigner writing multithreaded IP scanning, faster, F...
    多线程IP扫描老外写的多线程IP扫描,速度较快,有源码,主要是调用了icmp d-multithreaded IP scanning foreigner writing multithreaded IP scanning, faster, FOSS is mainly deployed icmp d
    2022-03-25 00:32:16下载
    积分:1
  • bianchenggaoshou
    说明:  非常不错的一本VC++编程书籍,《编程高手箴言》,程序员必备(Very good one VC++ Programming books, )
    2008-10-31 16:20:00下载
    积分:1
  • 毕业设计作品 视频语音聊天,浏览器,ftp等功能
    毕业设计作品 视频语音聊天,浏览器,ftp等功能-graduation designs video and voice chat, browser, ftp function
    2022-01-25 21:26:56下载
    积分:1
  • sine_cordic
    generate sine wave. Inputs : Amplitude, phasein, frequency
    2013-07-22 10:25:41下载
    积分:1
  • BCB SOCKET通讯
    基于TCP/IBCP协议的BCB SOCKET聊天 通讯源代码,SERVER和CLIENT功能集成在一起,直接编译后运行,复制到局域网中任何一台电脑之后即可进行聊天通讯。提供了SOCKET通讯的功能架构,做相应的修改即可实现您想要的功能。
    2022-07-17 02:47:45下载
    积分:1
  • 8202R_SW
    8202rd Sw usage description
    2014-06-07 04:29:33下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载