-
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
-
dijkstra1
数学建模迪卡斯特拉算法,最短路问题图论的应用(Mathematical modeling Ducasse Terra algorithm)
- 2013-08-23 13:55:40下载
- 积分:1
-
MATLABcPP
MATLAB与c++混编的案例代码,可运行,是学习的好例子(MATLAB and c++ mixed case code can be run, is a good example of learning)
- 2014-01-29 17:41:01下载
- 积分:1
-
dtw
dtw,动态时间规划,MATLAB程序,子函数,可以调用(Dynamic Time Planning)
- 2019-02-21 15:13:42下载
- 积分:1
-
TOOLBOX Stabilitas dan Kelsalahan
说明: toolbox matlab analisa kesalahan dan stabilitas
- 2020-06-18 21:40:01下载
- 积分:1
-
robot
说明: 这是一个两关节机械手的数学模型,matlab文件(This is a two joint manipulator mathematical model, matlab file)
- 2008-11-22 18:53:30下载
- 积分:1
-
gas-ag
This is a project for Gas agency System.You can check the doc and sourcecode
- 2014-02-21 03:38:20下载
- 积分:1
-
yenfui_v15
是小学期课程设计的题目,小波包分析提取振动信号中的特征频率,音频信号通过LM386放大。( Is the topic of the elementary school stage curriculum design, Wavelet packet analysis to extract vibration signal characteristic frequency, LM386 audio signal amplification.)
- 2016-09-13 12:57:02下载
- 积分:1
-
_0
说明: 多种智能天线经典波束形成算法,具有良好的方向图。(samrt antenna beamforming ,good performance)
- 2011-03-02 16:36:05下载
- 积分:1
-
shengyuxuan
说明: 升余弦滚降系统的源程序
matlab程序示例(Raised Cosine source of the examples Matlab)
- 2006-03-06 22:42:58下载
- 积分:1