-
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
-
ppln-matlab
飞秒光参量放大中信号放大效率随器件长度变化的matlab代码(Femtosecond optical parametric amplification efficiency of signal amplification device length changes with matlab code)
- 2013-09-14 00:04:35下载
- 积分:1
-
11111444
简易一级倒立摆MATLAB仿真,做的很完整可以当课设直接使用(MATLAB simulation of a simple pendulum, doing very complete set can be directly used as lesson)
- 2013-11-28 17:08:45下载
- 积分:1
-
Unititled
matlab小波分析,利用matlab将两张残缺图片合成完整图片(Matlab wavelet analysis, the use of matlab will be two incomplete picture synthesis picture)
- 2017-05-11 14:55:43下载
- 积分:1
-
fengmun
小波包分析提取振动信号中的特征频率,使用混沌与分形分析的例程,有井曲线作为输入可计算其地震波的衰减。( Wavelet packet analysis to extract vibration signal characteristic frequency, Use Chaos and fractal analysis routines, There is a well attenuation curve as input to calculate its seismic waves.)
- 2016-12-04 15:09:33下载
- 积分:1
-
FD
利用FD方法求解第一类边界条件下的矩形金属槽(FD method for solving the first boundary condition of the rectangular metal trough)
- 2012-05-21 16:01:35下载
- 积分:1
-
OFDM_signal
Orthogonal Freq, Division signal
- 2013-07-10 18:55:44下载
- 积分:1
-
ser
Serial port communication for kwp 2000 fast initialization. this code is not complete. I am trying to develop it
- 2015-02-24 00:23:12下载
- 积分:1
-
DLTcode
针对图片或视频数据的眼睛区域的检测,以及眨眼的检测确定人脸区域的程序。 份关于智能图像增强的美国专利,对图像处理感兴趣的朋友可以看一下。(Tracking learning)
- 2013-11-26 14:17:49下载
- 积分:1
-
WNN
小波分析以及小波神经网络的MATLAB源程序(The wavelet analysis and wavelet neural network implementation ways)
- 2015-03-19 20:23:12下载
- 积分:1