登录
首页 » Java » HardWork

HardWork

于 2010-04-27 发布 文件大小:3KB
0 183
下载积分: 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 个回复

  • V2.0
    用matlab实现的俄罗斯方块!利用gui实现。界面华丽。(failed to translate)
    2011-09-23 01:00:54下载
    积分:1
  • BA_net
    利用MATLAB编写的复杂网络构造程序,很实用的代码~(Complex networks using MATLAB constructor, very useful code to)
    2013-03-24 21:40:44下载
    积分:1
  • dqpsk
    本程序包含了dqpsk调制程序解调程序,含有测试程序,是基于MATLAB的仿真程序(The program includes dqpsk modulation and demodulation process program, containing the test procedure is based on MATLAB simulation program)
    2014-12-09 20:31:19下载
    积分:1
  • PCM_encode_decode
    PCM编码把模拟信号转换为数字编码,在通信电路的目的地,脉冲调制解调器将二进制的数字编码重新转换成那些在调制器中有相同量子水平的脉冲。(PCM encoding to convert analog signals to digital encoding, the destination of the communication circuit, the binary pulse modem re-converted into digital code modulator in which the quantum level of the same pulse.)
    2009-04-11 21:31:06下载
    积分:1
  • IntToString
    Returns the JVM class name within the constant pool context of cls class definition.
    2014-01-17 14:29:41下载
    积分:1
  • xuyigongji
    复杂网络的蓄意攻击,蓄意攻击是攻击度最大的节点(Deliberate attack complex networks, deliberate attack is an attack of the largest node)
    2016-06-20 20:52:22下载
    积分:1
  • MATLAcode
    说明:  matlab常见的几个算法,有人脸识别, 车牌号识别等。(matlab several common algorithms, there is face recognition, license plate number recognition.)
    2009-07-23 20:07:43下载
    积分:1
  • 12342345r
    实现两幅图像的匹配,程序已调试,可以直接运行(Realize the two images to match, the program has commissioning, can run directly)
    2011-12-03 15:46:02下载
    积分:1
  • buipiu
    高斯白噪声的生成程序,采用了小波去噪的思想,小波包分析提取振动信号中的特征频率。( Gaussian white noise generator, Using wavelet denoising thought, Wavelet packet analysis to extract vibration signal characteristic frequency.)
    2017-01-04 15:53:50下载
    积分:1
  • de-jong-f4
    PSO-De jong cod for matlab
    2013-10-31 14:07:46下载
    积分:1
  • 696518资源总数
  • 106227会员总数
  • 11今日下载