登录
首页 » Java » HardWork

HardWork

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

  • YINGWEN
    2频移键控模拟模型的基本原理、波形,请您仔细浏览,给予评价(2 FSK simulation principle and waveform, please carefully browsing, giving the appraisal)
    2011-12-26 11:49:52下载
    积分:1
  • WRadarSP-master
    说明:  可以模拟和处理天气雷达信号。它专注于地面杂波消除(Can simulate and process weather radar signals. It focuses on ground clutter cancellation)
    2020-03-15 11:10:06下载
    积分:1
  • sa_tsp
    tsp旅行商问题,简洁的程序,适合学习。由MATLAB编写TSP旅行商问题
    2009-03-28 15:34:48下载
    积分:1
  • Pre_Orthomin_K
    求解线性方程组的Orthomin法。包括matrix preconditioning和Restart。(Solving Linear Equations Orthomin law. Including the matrix preconditioning and Restart.)
    2010-11-23 11:34:04下载
    积分:1
  • A_gain_calculator
    a gain calculator about semiconductor optical amplifier gain and ode method
    2012-04-24 13:56:58下载
    积分:1
  • Signal_Processing
    a signal processing using MATLAB and Simulink
    2014-11-03 21:52:45下载
    积分:1
  • lfmchirp
    用于仿真雷达基础函数-线性调频函数和实验结果分析(simulate LFM for radar, results are also include.)
    2009-10-16 14:43:58下载
    积分:1
  • SVPWMsimulink
    SVPWM仿真用simulink,基本出来了(svpwm)
    2010-01-19 22:14:39下载
    积分:1
  • 2
    说明:  matlab经典算法的程序,插值与拟合.......................(classical algorithm matlab program, interpolation and fitting .......................)
    2010-05-13 09:05:22下载
    积分:1
  • new3
    该程序是对于雷达点目标成像的,对于雷达初学者来说是一个很好的资料。(The program is a radar point target imaging, radar beginners is a good information.)
    2012-09-22 20:44:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载