-
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
-
bch_erasures
Erasure correction achieved by two errors-only decoding passes using the Euclidean algorithm. Any (valid) code length can be input.
(Erasure correction achieved by two errors- only decoding passes using the Euclidean algo rithm. Any (valid) code length can be input.)
- 2006-09-05 08:44:53下载
- 积分:1
-
code
GMM,LDA,PCA,GMM,LDA,PCAGMM,LDA,PCA(the code of GMM,LDA,PCA)
- 2014-11-03 15:33:54下载
- 积分:1
-
fastica
基于独立成分分析混合图像盲源分离技术与研究(Technology and Research mixed image separation by Independent Component Analysis)
- 2015-05-14 16:21:20下载
- 积分:1
-
NIPALS
NIPALS 算法
留1法 交叉检验
绘图 (NIPALS algorithm cross-validation method to stay one mapping)
- 2008-04-11 10:48:28下载
- 积分:1
-
hw_1_Markowitz_01
一個簡單的小程式用於建構Markowitz投資組合。(This program is used for modeling Markowitz portfolio.)
- 2012-04-12 00:52:56下载
- 积分:1
-
gaotong
用频率抽样法实现高通滤波器 频率为0-100HZ 用此程序可实现对心电信号基线漂移的消除(Use frequency sampling method achieve high-pass filter frequency of 0-100HZ with this program can be realized to eliminate ECG baseline drift)
- 2012-01-12 19:58:40下载
- 积分:1
-
AIRtools
CT图像重建中的代数重建工具包(AIR Tools is a MATLAB software package for tomographic reconstruction (and other imaging problems) consisting of a number of algebraic iterative reconstruction methods. The work was carried out as part of the project CSI: Computational Science in Imaging, funded by the Danish Research Council for Technology and Production Sciences, and headed by Prof. Per Christian Hansen, DTU Compute. The collaborators are DTU Compute, Dept. of Electronic Systems at Aalborg University, and MOSEK ApS. The main part of the Matlab code was written by Maria Saxild-Hansen. The core of the functions fambeamtomo, paralleltomo, and seismictomo was written by Jakob Sauer J鴕gensen.)
- 2014-02-10 01:53:55下载
- 积分:1
-
kernel_debugging_tutorial
windbg的使用文档.目前而言,本人认为是最全面的文档了(use of windbg documentation. now, I think is the most comprehensive documentation of the)
- 2007-09-05 15:09:12下载
- 积分:1
-
OFDM16QAM
OFDM中采用的16QAM的simulink实现(OFDM16QAM)
- 2009-05-15 11:00:10下载
- 积分:1