登录
首页 » Java » Employee

Employee

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

  • Java+TCP/IP+Socket++原书第2版
    说明:  socekt编程。便于了解常用的tcp,udp编码与服务器编码方式(Socekt programming. Easy to understand the common tcp, UDP coding and server coding methods)
    2019-04-22 11:17:34下载
    积分:1
  • Four-CPU-scheduling-algorithm
    用c++实现的CPU四种调度算法,简单易懂(With c++ implementation of the four types of CPU scheduling algorithm, simple to understand)
    2015-01-08 17:22:21下载
    积分:1
  • 使用JAVA I/O和 NI/O写的两种网络ECHO服务器,用以学习两种IO的不同方法,体验基于阻塞与非阻塞IO开发高性能网络应用序的具体实例.Java...
    使用JAVA I/O和 NI/O编写的两种网络ECHO服务器,用以学习两种IO的不同编程方法,体验基于阻塞与非阻塞IO开发高性能网络应用程序的具体实例.Java平台传统的I/0系统基于byte(字节)和Stream(数据流)。这种模式下的I/O 操作以字节为单位,以流的方式处理数据。而NIO( New I/O )以块的方式处理数据,它的系统操作面向Buffer(缓冲),Channel(通道)和Selector(选择器),不再是字节,这种模式利用了操作系统管理内存和文件的方式,并将一些耗时操作直接转移给操作系统,使JavaI/O的速度得以提高、性能得到了明显的改善 -The use of JAVA I/O and NI/O, prepared by two types of network servers ECHO to learn two different programming methods IO experience obstructive and non-blocking IO based on the development of high-performance network applications specific examples. Java platform for the traditional I/0 system is based on the byte (byte) and Stream (data streams). This mode of I/O operation in bytes in order to deal with data flow way. The NIO (New I/O) blocks the way to deal with data, its system for Buffer (buffer), Channel (channel) and the Selector (selector), is no longer a byte, this mode of use of operating system management of memory and the manner in which documents, and some time-consuming operation of a direc
    2022-02-09 15:18:54下载
    积分:1
  • rgbtohsi
    Copyright (c) 2007, Madhu S. Nair All rights reserved
    2016-06-04 18:02:33下载
    积分:1
  • 这部分是RTU(remote trans... unit)的监控客户端,这是电厂远动数据的监测客户端。...
    这部分是RTU(remote trans... unit)的监控客户端,这是电厂远动数据的监测客户端。-RTU(remote trans... unit)Client
    2022-02-20 10:03:17下载
    积分:1
  • KCCA
    基于核的典型相关分析,用做图像特征级融合(Kernel canonical correlation analysis is used for image feature level fusion)
    2020-11-13 10:59:44下载
    积分:1
  • 9试验模态参数的时域识别方法
    关于模态参数的时域识别方法,文件夹中包括6个源程序(For modal parameter identification in time domain, the folder contains 6 source programs.)
    2018-05-08 16:40:13下载
    积分:1
  • CPP-Primer--Fifth-Edition
    C++ Primer the fifth edition
    2012-12-06 09:43:08下载
    积分:1
  • 4637354
    Windows音频音量控制实例VB代码,有需要的下。(Windows VB code, audio volume control instance in need.)
    2013-08-19 08:37:33下载
    积分:1
  • 网络一级拓朴构建源码,可以发现局域网内的路由器与交换机
    网络一级拓朴构建源码,可以发现局域网内的路由器与交换机-Construction of backbone network topology diagram C++ source code
    2022-10-06 15:45:03下载
    积分:1
  • 696518资源总数
  • 104830会员总数
  • 42今日下载