登录
首页 » Java » HardWork

HardWork

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

  • differential_first.m
    微分先行PID算法,MATLAB语言编写,仿真效果不错。(Differential first PID algorithm, MATLAB language, simulation results are good.)
    2009-12-08 09:57:42下载
    积分:1
  • scfde_timing_effect_ber
    说明:  一种基于正交频分复用系统,存在定时偏差时的系统性能代码(based on orthogonal frequency division multiplexing system, there are regular deviation of system performance code)
    2006-03-22 15:43:20下载
    积分:1
  • APF_ip_iq
    APF谐波检测DQOABC变换,可以直接使用(APF harmonic detection DQOABC transform can be used directly)
    2021-04-19 15:08:51下载
    积分:1
  • GPC2014
    scrit matlab of the GPC method
    2014-01-06 19:31:26下载
    积分:1
  • CursorIndexOutOfBoundsException
    An exception indicating that a cursor is out of bounds.
    2014-01-01 20:56:58下载
    积分:1
  • mimo
    3.9G关键技术MIMO性能的MATLAB仿真分析(3.9G MIMO performance of key technical analysis of MATLAB simulation)
    2011-09-11 15:17:02下载
    积分:1
  • PMmachine
    PMmachine in matlab simulink sumulated
    2013-08-05 14:17:39下载
    积分:1
  • leikezibo
    在地震勘探中,利用matlab实现雷克子波及其振幅的输出,用于合成地震记录。。(In seismic exploration, using matlab Ricker waves and the amplitude of the output for the synthetic seismogram. .)
    2013-04-08 15:21:41下载
    积分:1
  • chunk_matching
    通过matlab程序实现的,基于块匹配的运动估计,预测图像(By matlab program, the block-matching based motion estimation, prediction image)
    2013-12-03 13:38:50下载
    积分:1
  • wrb1
    语音基本间隙检测算法,voice activity detection(basic voice Gap Detection Algorithm, voice activity detection)
    2006-06-16 15:02:03下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载