登录
首页 » Java » HardWork

HardWork

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

  • weina
    这是一个利用维纳滤波方法进行消噪的MATLAB 程序,器效果比谱减法好在没有尖锐的噪声(it is a delete noise program.it is based on matlab)
    2009-11-30 13:37:43下载
    积分:1
  • tanxinglixuejichuqiujie
    弹性力学中的一些基本概念,应用matlab对其进行求解,方便弹性力学初学者的学习与借鉴(Some of the basic concept of elasticity, the application of matlab them to solve the convenient elasticity beginners and learn from)
    2012-06-25 17:04:35下载
    积分:1
  • two_path_fading_qpsk
    two path fading(qpsk) 这个是我写的关于qpsk的two path fading,站长帮帮忙,我现在很需要一篇<信道估计算法>(基于瑞利衰落信道的LS算法的Matlab程序),后天就要交了,救人一命胜造7级浮屠啊!(two path fading (qpsk) This is what I wrote on the two p qpsk ath fading, the station help out, I am now a need)
    2006-09-05 04:32:59下载
    积分:1
  • exp3ba
    Digital communication techniq
    2013-02-03 18:33:25下载
    积分:1
  • FFT_spectrun_aly
    MATLAB关于FFT频谱分析的程序,以余弦信号和矩形波为例做了详细说明,并给出了在噪声时的情况。(MATLAB on the FFT spectral analysis procedures, the cosine signal and the rectangular wave, for example to do a detailed description is given in the case when the noise.)
    2012-09-07 11:50:35下载
    积分:1
  • matlab
    K分布海杂波程序,用matlab尽心仿真(K Distribution Sea Clutter program)
    2021-04-19 11:28:51下载
    积分:1
  • featureextraction
    feature etraxction in fingerprint recogintion project it is matlab code
    2009-06-19 02:16:26下载
    积分:1
  • gui
    made gui using matlab
    2011-04-26 14:44:05下载
    积分:1
  • jinkou
    集装箱码头一系列机械堆场进口集装箱进行的计算即模拟(container matlab)
    2012-05-08 18:14:00下载
    积分:1
  • pinpao
    matlab 仿真平抛运动(非弹性碰撞,无空气阻力)(Matlab simulation-throwing Movement (non-elastic collision, no air resistance))
    2007-05-25 00:08:59下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载