登录
首页 » Java » Employee

Employee

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

  • vbsystray
    自制托盘控件,用来使应用程序隐藏到系统托盘的控件(Zìzhì tuōpán kòngjiàn, yòng lái shǐ yìngyòng chéngxù yǐncáng dào xìtǒng tuōpán de kòngjiànHomemade tray control, used to make an application to the system tray hide the controls)
    2013-11-05 11:49:39下载
    积分:1
  • JavaMail
    用JavaMail实现邮件发送。用户验证及附件(Send e-mail using JavaMail achieve. User authentication and accessories)
    2014-02-27 09:53:08下载
    积分:1
  • text
    NetBeans8.2连接mysql数据库测试文档(NetBeans 8.2 Connect Mysql Database Test Document)
    2019-06-10 15:32:51下载
    积分:1
  • 这是一个免费的用于局域网的小工具,网络邻居可以快捷地浏览工作组内的计算机。...
    这是一个免费的用于局域网的小工具,网络邻居可以快捷地浏览工作组内的计算机。-This is a free mini tool using in LAN to browse computer in workgroup quickly through network neighbor.
    2022-03-26 00:08:03下载
    积分:1
  • lecture-dtn-ease-pocket
    Mobility Assisted Networking in wsn
    2009-09-04 19:33:46下载
    积分:1
  • MAX5980
    MAX5980 四路,IEEE 802.3at / af PSE控制器 用于以太网供电(MAX5980 Quad, IEEE 802.3at/af PSE Controller for Power-over-Ethernet)
    2020-06-25 12:20:02下载
    积分:1
  • BT
    说明:  java 在Windows下实现BT下载(OurBT)
    2010-04-15 11:40:13下载
    积分:1
  • 用Delphi写Socket网络通讯
    用Delphi编写Socket网络通讯程序-with Delphi Socket network communications procedures
    2022-05-26 08:30:07下载
    积分:1
  • RTXWhitePaper-6-09
    Windows操作系统硬实时扩展软件RTX白皮书(Windows operating system RTX white paper)
    2012-01-07 23:12:25下载
    积分:1
  • AntiVAAAAAnAwareness
    处理各种杀软查杀的库,主要反杀软的虚拟机查杀和智能查杀!(Deal with soft kill killing the library, the main anti-kill killing soft and intelligent killing virtual machine!)
    2011-01-02 20:28:24下载
    积分:1
  • 696516资源总数
  • 106927会员总数
  • 1今日下载