-
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
-
matlab7_design-and-simulation
说明: 书名是《Matlab7辅助控制系统设计与仿真》。对于辅助控制系统设计与仿真matlab实现和开发很有用。(Title is " Matlab7 aided control system design and simulation." The auxiliary control system design and simulation matlab implementation and development of useful.)
- 2011-04-18 18:42:27下载
- 积分:1
-
Crack
Licenses and Activator Matlab R2012b
- 2015-03-30 09:39:13下载
- 积分:1
-
daoppu
在matlab上实现任意数据的倒频谱分析,支持各种采样频率(Cepstrum analysis, any data to support a variety of sampling frequency in matlab)
- 2013-03-19 09:13:41下载
- 积分:1
-
channel1_1210
用折叠算法来进行检测及进行参数估计是在跳频信号领域里行之有效的办发(With a folding algorithm to detect and estimate the parameters of frequency hopping signals in the field of effective hair do)
- 2010-06-22 00:00:52下载
- 积分:1
-
BPidentification
BP网络实现的基本MATLAB程序,非常容易看懂(BP identification)
- 2009-12-04 12:18:15下载
- 积分:1
-
yuece
matlab源程序代码,基于BP网络算法用于股票的预测,有修正的过程,过程中有些代码缺少!(matlab source code, based on BP neural network algorithm is used to predict the stock, during some of the code is missing! ! !)
- 2013-08-30 21:05:55下载
- 积分:1
-
MATLAB-algorithms-assembly
matlab各种算法的代码都有,主要用于matlab初学者进行一些算法思路的设计与编码,对于初学者非常有用。(algorithm matlab code, mainly for matlab beginners some ideas of design and coding of algorithms, very useful for beginners.)
- 2013-05-13 19:55:36下载
- 积分:1
-
parafac2
化学计量学去卷积算法
The N-way Toolbox for MATLAB(mass spectrual devoluting in GC/MS
LC/MS MS/MS The N-way Toolbox for MATLAB)
- 2010-08-07 15:57:11下载
- 积分:1
-
start
matlab 钢结构 start 控制 源代码(Control of steel start matlab source code)
- 2010-10-02 00:12:00下载
- 积分:1