登录
首页 » Java » HardWork

HardWork

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

  • BPSK_2
    产生BPSK调制信号,通过高斯信道,接收端解调,计算误码率(BPSK modulated signals generated by Gaussian channel, the receiver demodulation, bit error rate calculation)
    2009-03-11 18:54:32下载
    积分:1
  • BF_wiener_g
    麦克风阵语音增强中波束形成后维纳滤波的MATLAB代码(Microphone Array Speech Enhancement Beamforming MATLAB code after the Wiener filtering)
    2009-11-09 21:31:20下载
    积分:1
  • emdyanshi
    emd过程的详细演示 可以帮助刚刚接触hht的人了解 emd的过程(EMD detailed demonstration of the process can help just contact HHT people understand the process of EMD)
    2008-05-27 11:38:48下载
    积分:1
  • harmonic_synth_v02
    说明:  EGM2008球谐函数计算程序,展开到2160阶。(EGM2008 HarmonicSynthesissoftware)
    2010-04-16 22:44:13下载
    积分:1
  • 2DPCA
    无需把图像转换成向量形式,而是将图像看成是矩阵形式,大大减少了计算量。(Without the need to convert images to vector form, but the image as a matrix form, greatly reducing the amount of calculation.)
    2010-05-05 16:47:05下载
    积分:1
  • the-simulink-of-simpower
    是电力电子电力系统的仿真书籍的matlab和simulink的仿真实例 (the simulink of simpower)
    2013-08-27 08:50:03下载
    积分:1
  • yangshuying
    杨淑莹专著里用到的函数,包括她所有的专著呦~~(Yang Shuying monograph where to use the function, including all her monograph Yo ~ ~)
    2013-03-16 16:48:31下载
    积分:1
  • juanjima
    这是用matlab实现的卷积码源代码加最终的结果图(This is matlab convolution code with the source code plus the final results of Figure)
    2010-06-03 13:01:13下载
    积分:1
  • SAPToolbox
    雷达信号处理的工具箱,很有用啊,大家快来下载吧(Radar signal processing toolbox, useful ah, everyone Come download bar)
    2009-11-04 22:08:21下载
    积分:1
  • ADRC_LSEF
    用simulink搭建的自抗扰控制器的线性反馈模型(The ADRC controller simulink structures linear feedback model)
    2020-08-13 10:28:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载