登录
首页 » Java » HardWork

HardWork

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

  • simple_lookup
    基于MATLAB的simple_lookup详解,主要解决的是simple_lookup的问题(Based on MATLAB-simple_lookup explain, the main problem lies in the question of simple_lookup)
    2008-04-06 22:06:11下载
    积分:1
  • Neyman-Pearson-detection
    我是刚上研一的小虾米,也不知道传些啥。文档是我们信号检测与估计课下的MATLAB仿真。希望对大家有所帮助。(I was just on Kenichi Shrimps, do not know what are work. The document is the lesson of our signal detection and estimation MATLAB simulation. I hope to be helpful to everyone.)
    2013-01-08 20:19:28下载
    积分:1
  • right
    非线性对象的线性化,cstr模型的建立,利用非线性求解方法实现其线性化(nonlinear translate to linear,model of cstr)
    2013-09-01 16:07:28下载
    积分:1
  • convolution
    matlab写的实现不同信号之间采样,卷积,重构等。里面有一个.exe是用matlab写的界面,可以打开看到效果。(matlab written between the different signals sampling, convolution and reconstruction. There is one. Exe matlab write interface, you can open to see the effect.)
    2012-10-30 13:26:25下载
    积分:1
  • LJ
    说明:  本程序用来求转子的临界转速,模型为有限元模型(This procedure is used to seek the rotor critical speed, the model for the finite element model)
    2010-08-07 11:18:06下载
    积分:1
  • PID_CORRECTION
    自动控制原理,对原系统进行PID校正,观测BODE图以及时域波形的简要程序。(Automatic control theory, PID correction of the original system, a brief observation program BODE diagram and time-domain waveform.)
    2013-12-13 20:27:35下载
    积分:1
  • FDTD3D_UPML1_OP
    help me to help another
    2011-04-29 02:52:32下载
    积分:1
  • psolssvm_and_data
    粒子群优化支持向量机的算法,主要是用于优化两个参数(PSO LSSVM algorithm)
    2020-09-23 15:07:50下载
    积分:1
  • information-fusion-algorithm
    说明:  本文利用模糊理论中的高斯隶属 度函数来获得模糊观测下具有概率特性的似然函数,并且由此似然函数得到每个传感器提供信息的可信度;再将各传感器的可 信度转化成基本概率赋值函数即mass 函数;最后利用证据理论对多传感器信息进行融合。对目标识别的仿真试验表明该方法获 得的结果比直接结果具有更高的精度和可靠性。(The method uses fuzzy theory in the Gaussian fuzzy membership function to obtain a probable characteristic under observation likelihood function,and the resulting likelihood function gets the credibility of the information provided by the sensors.Then the reliability of each sensor is changed to a mass function.Finally,multi-sensor information is combined by using evidence theory.Simulation of target recognition shows that the results obtained have higher accuracy and reliability.)
    2011-03-22 11:36:08下载
    积分:1
  • Space-Time-Codes-and-MIMO-Systems
    mimo通信系统中空时编码处理书中所附的matlab仿真代码,供大家学习(mimo communication system of hollow-coded handle the book accompanying Matlab simulation code, for your learning)
    2012-04-04 17:47:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载