登录
首页 » Java » HardWork

HardWork

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

  • policygradientlibrary
    pomdp中关于策略梯度的matlab代码实现,非常详细。(pomdp on strategies to achieve gradient matlab code, very detailed.)
    2010-05-17 15:13:26下载
    积分:1
  • yutou
    clifford attractor matlab 编程(clifford attractor Matlab programming)
    2006-12-12 23:28:46下载
    积分:1
  • mfsk
    MFSK simulation, Coherent and non coherent detection including performance with awgn
    2012-06-14 23:14:53下载
    积分:1
  • adaboost-emd-wavelet-ARIMA
    emd/wavelet信号处理的matlab程序 ARIMA时间序列matlab预测程序 单纯形法matlab程序 图论算法及其matlab代码 adaboost原理及代码(emd/wavelet signal processing matlab program ARIMA time series matlab prediction program simplex method matlab program graph theory algorithm matlab code adaboost principle and code)
    2013-02-23 12:22:33下载
    积分:1
  • PV-MODELE6
    PHOTOVOLTAIC MODELISATION WITH SIMULINK
    2013-11-06 21:03:45下载
    积分:1
  • JADE-a-SOBI
    sobi and jade algorithm , matlab
    2011-12-07 19:37:43下载
    积分:1
  • A_Star-path-planning-algorithm-demo
    A_Star算法路径规划演示 包括完整的程序和仿真结果,可以运行(A_Star path planning algorithm demo includes a complete program and simulation results, you can run crorrect)
    2015-04-07 18:51:21下载
    积分:1
  • Cyclo
    Cyclo Converter- fixed ac to variable freq and voltage ac with simple simulation circuits
    2011-10-08 01:46:38下载
    积分:1
  • code2
    MLP network with fig
    2012-09-06 23:16:45下载
    积分:1
  • learning_matlab
    LEARNING MATLAB MADE EASY
    2012-01-06 12:59:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载