登录
首页 » Java » Employee

Employee

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

  • Java
    很漂亮的一款列表式显示数据的JAVA源码实例,运行效果图如上所示,JAVA爱好者一定会喜欢哦(Very beautiful a list of data show that the JAVA source code examples, operating results as shown above, JAVA lovers will love Oh)
    2016-12-22 15:10:44下载
    积分:1
  • 1
    说明:  java code for multithreading, queue implementation using stacks and stacks using arrays
    2010-12-04 01:58:28下载
    积分:1
  • calculator
    大三课程设计(java编程小实例):计算器小程序(java programming small example: Calculator applet)
    2013-08-28 20:44:44下载
    积分:1
  • CSharp
    C#二维三维图形绘制书源码,共9章,包含C#绘制二维三维图形的全部代码(C# 2D and 3D graphics rendering source book)
    2014-11-06 16:25:10下载
    积分:1
  • send1
    读取鼠标所在位置的单词,sendmessage的实例应用(The location of the mouse to read words, sendmessage examples of applications)
    2016-02-29 14:45:15下载
    积分:1
  • aodv Routing Protocol
    aodv路由协议-aodv Routing Protocol
    2022-08-09 02:53:58下载
    积分:1
  • ipclient
    This is a messenger program written in VC++. This is a client program
    2009-06-15 18:13:57下载
    积分:1
  • 1
    说明:  常用运放电路集锦 包括数个常用运放电路 接法与运放放大倍数具体算法(Commonly used op-amp circuit highlights include a number of commonly used op-amp circuit with the op-amp connected in a specific algorithm for magnification)
    2009-08-29 09:35:17下载
    积分:1
  • 阿赛网址导航系统,运行平台Asp+Acce
    阿赛网址导航系统,运行平台Asp+Acce-A race website navigation systems, operating platform Asp+ Access
    2022-02-04 00:57:21下载
    积分:1
  • Qios.DevSuite.DemoZone
    说明:  先进的控制和强大的功能 qios.devsuite包含30多个高级控件,使您能够创建高级图形用户界面。所有控件都是高度可配置的,并且具有很高的精度。此外,qios.devsuite还包含一系列让开发人员更容易工作的重要功能。(Advanced Controls and Great Features Qios.DevSuite contains more than 30 advanced controls that make it possible for you to create advanced graphical user interfaces. All controls are highly configurable and with great precision. Furthermore Qios.DevSuite contains a list of great features that make developers work so much easier.)
    2020-06-18 00:40:02下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载