登录
首页 » Java » HardWork

HardWork

于 2010-04-27 发布 文件大小:3KB
0 180
下载积分: 1 下载次数: 0

代码说明:

说明:  上转型对象 1.实验目的 掌握上转型对象的使用。 2. 实验要求 要求有一个abstract类,类名为Employee,Employee的子类有YearWorker、MonthWorker和WeekWorker。YearWorker对象按年领取薪水,MonthWorker按月领取薪水,WeekWorker按周领取薪水。Employee有一个abstract方法: public abstract earnings() 子类必须重写父类的earnings()方法,给出各自领取薪水的具体方式。 有一个Company类,该类用Employee数组作为成员,Employee数组的单元可以是YearWorker对象、MonthWorker对象或WeekWorker对象的上转型对象。程序能输出Company对象一年需支付的薪水总额。 (The transformation of the object 1. Purpose of the experiment used to grasp the transformation of the object. 2. Experiment requires a abstract class requirements, class named Employee, Employee of the child class has YearWorker, MonthWorker and WeekWorker. YearWorker object to receive annual salary, MonthWorker receive a monthly salary, WeekWorker receive weekly salary. Employee one abstract method: public abstract earnings () sub-class must override the parent class of earnings () method, given their own specific way of receiving pay. A Company class, such as members with an array of Employee, Employee of the array elements can be YearWorker object, MonthWorker object or objects on the transformation of objects WeekWorker. Company object program can output a year' s salary to be paid the total amount.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • matlabqiujifen
    matlab应用,定积分不定积分应用的函数说明及实例讨论(matlab applications, the definite integral indefinite integral function descriptions and examples of the application of discussion)
    2013-01-13 09:57:53下载
    积分:1
  • subbyteskey
    add sub bytes through incrypting image
    2011-10-16 20:26:09下载
    积分:1
  • Reciprocatingcompressorvibrationsignalspectrumanal
    Reciprocating compressor vibration signal spectrum analysis and fault diagnosis往复式压缩机振动信号频谱分析与故障诊断.pdf
    2009-11-26 21:37:12下载
    积分:1
  • Eyetracking
    Matlab code for eye tracking
    2010-10-22 16:22:03下载
    积分:1
  • ant
    蚁群算法,MATLAB实现,用于TSP问题(Ant colony algorithm, MATLAB implementation)
    2011-10-08 17:01:01下载
    积分:1
  • hanming_code
    本程序时本科课程设计做汉明编码的一个例程 能对一个序列进行汉明编码和译码(This function can coding the sequence into hanming code.)
    2012-02-15 09:02:43下载
    积分:1
  • chap8
    说明:  基本的图像处理技术在MATLAB里得到非常好的应用(The basic image processing technology in the years to be a very good application of MATLAB)
    2010-03-27 21:03:22下载
    积分:1
  • multpaht-fading-channel-basic-model
    由于多径和移动台运动等影响因素,使得移动信道对传输信号在时间、频率和角度上造成了色散,如时间色散、频率色散、角度色散等等,因此多径信道的特性对通信质量有着至关重要的影响,而多径信道的包络统计特性成为我们研究的焦点。根据不同无线环境,接收信号包络一般服从几种典型分布,如瑞利分布、莱斯分布和Nakagami-m分布。(Because multipath and mobile and other sports influence factor, makes mobile channel in transmission in time and frequency signal and Angle caused the dispersion, such as time dispersion, frequency dispersion, Angle dispersion, and so on, thus multipath channel of communication with the characteristics of quality is very important, while the effect of multipath channel (the statistical properties become the focus of our research. According to different wireless environment, receiving signals envelope general subject to several typical distribution, such as Rayleigh distribution, rice distribution and Nakagami-m distribution. )
    2012-04-30 10:05:04下载
    积分:1
  • MATLAB-MIMO
    这是学习MIMO卫星通信系统,信道容量与信噪比之间关系的一个好的案例(MIMO matlab SNR)
    2020-10-26 00:30:01下载
    积分:1
  • LinuxSrv
    Introduction to Linux A Hands on Guide Machtelt Garrels
    2013-03-07 21:26:20下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载