-
HardWork
说明: 上转型对象
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.)
- 2010-04-27 18:54:17下载
- 积分:1
-
Files_Matlab
code of matlab for GPC
- 2012-04-19 12:42:47下载
- 积分:1
-
matlab
一篇关于Matlab的很好的教程,对于学习matlab来讲是一个不错的选择(A good tutorial on Matlab, matlab for learning is a good choice in terms of)
- 2013-05-22 09:13:44下载
- 积分:1
-
example2
matlab编程:遗传算法求解最大值
matlab编程:遗传算法求解最大值(matlab Programming: Genetic Algorithm for Max matlab Programming: Genetic Algorithm for Maximum)
- 2009-01-05 17:17:49下载
- 积分:1
-
chap17
神经网络的使用方法,希望对大家有用,适合有基础的学生自己研究(Use of neural networks, we want to be useful for students who have their own research foundation)
- 2014-09-11 21:07:02下载
- 积分:1
-
pqtheory
active and reactive power theory simulink
- 2015-03-07 03:46:05下载
- 积分:1
-
OFDM
OFDM系统级的仿真,里面涉及到卷积编码,交织,qpsk调制等(OFDM system-level simulation, which relates to convolutional coding, interleaving, qpsk modulation)
- 2010-06-01 10:53:09下载
- 积分:1
-
radar-clutter
对多种雷达杂波的生成进行仿真,包括高斯白噪声,瑞利噪声等(simulation of a variety of radar clutter)
- 2012-09-12 22:01:16下载
- 积分:1
-
daima
本例程是在matlab开发环境中运用粒子群优化潮流计算(本例程是在matlab开发环境中运用粒子群优化潮流计算
请输入文字或网站地址,您也可以直接上传文档。
取消
Běn lì chéng shì zài matlab kāifā huánjìng zhōng yùnyòng lìzǐ qún yōuhuà cháoliú jìsuànThis routine is used in the development environment matlab PSO flow calculation)
- 2016-04-06 16:48:26下载
- 积分:1
-
uzzfqbva
粒子图像分割及匹配均为自行编制的子例程,三相光伏逆变并网的仿真,包含了阵列信号处理的常见算法,分析了该信号的时域、频域、倒谱,循环谱等,在matlab R2009b调试通过,Matlab实现界面友好,基于互功率谱的时延估计。( Particle image segmentation and matching subroutines themselves are prepared, Three-phase photovoltaic inverter and network simulation, Contains a common array signal processing algorithm, Analysis of the signal time domain, frequency domain, cepstrum, cyclic spectrum, etc. In matlab R2009b debugging through, Matlab to achieve user-friendly, Based on the time delay estimation of power spectrum.)
- 2016-04-10 16:47:59下载
- 积分:1