登录
首页 » Java » Employee

Employee

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

  • RobotCamDemoVBT
    相机的sd刚学封装的可以看看,其中封装了两个相机,也可自行添加多相机(Two cameras are packed and multiple cameras can be added to the camera)
    2017-11-09 10:34:59下载
    积分:1
  • BluetoothAudioGateway
    Listens for incoming RFCOMM connection for the headset / handsfree service.
    2013-11-07 11:50:21下载
    积分:1
  • 这个序非常好用,一定不要错过哦,有问请请MAIL通知...
    这个程序非常好用,一定不要错过哦,有问请请MAIL通知-this procedure is very useful, we should not miss, oh, please ask please notify MAIL
    2022-02-04 06:05:33下载
    积分:1
  • 源代码
    可以读取气象资料中的站点数据,将其插值为0.5*0.5格点数据,然后可以利用格点数据进行数据处理和画图。(Station data in meteorological data can be read and interpolated into 0.5*0.5 grid data. Lattice data can be used for data processing and drawing.)
    2019-06-24 16:32:55下载
    积分:1
  • ANNEALTSP
    solving the TSP problem
    2009-10-18 02:42:17下载
    积分:1
  • 83310020
    从对话框中设置加速键表来实现快捷键的使用(The use of shortcut keys by setting the accelerator key table from the dialog box)
    2018-10-09 05:57:05下载
    积分:1
  • gh0st-3.6sada
    免杀版ghost3.6 带服务器管理 很容易免杀的 换换资源完爆360全套(dwalfnselgreg fdseres )
    2014-09-25 21:22:55下载
    积分:1
  • A01_OpenGL的序框架
    这个文件(项目文件)包含在项目一级的信息是用来建立一个单一的项目或子项目。其他用户可以共享项目(DSP)文件,但他们应该出口makefiles当地(This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally.)
    2017-07-28 14:27:38下载
    积分:1
  • 816938
    用于管理RocketMQ3,2,6集群服务,直接将war包放在tomca里()
    2017-09-22 07:15:35下载
    积分:1
  • 端口扫描是一种指定单个端口或多个端口的地址的权利…
    端口扫描是一个能够对指定IP地址的单个端口或者多个端口进行扫描的程序; -port scan is a right to specify the IP addresses of individual ports or multiple port scanning procedures;
    2022-08-04 08:59:32下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载