-
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
-
linehough
霍夫变换的令一种算法,对于直线检测效果很好(Hough transform to make an algorithm that works well for line detection)
- 2010-05-27 17:20:01下载
- 积分:1
-
Kalman
卡尔曼滤波器的简介 以及相关程序代码 效果还可以(Kalman filter- works well)
- 2012-05-25 21:57:50下载
- 积分:1
-
ELECTRONICA
Unit of elctronic aplicatiosn
- 2010-09-24 23:13:25下载
- 积分:1
-
OFDMSIMULATE
一个详细的OFDM-UWB仿真程序,有很多模块和功能,比较适合详细了解原理后作仿真参考(A detailed simulation program OFDM-UWB, there are many modules and functions, more suitable after a detailed understanding of the principle of simulation of reference)
- 2009-06-05 23:38:04下载
- 积分:1
-
mfcc
Mfcc 提取语音特征参数 可以分辨出不同情感(Mfcc speech feature extraction can distinguish between different emotions)
- 2011-05-23 16:58:51下载
- 积分:1
-
ia
说明: 基于matlab的免疫克隆算法,求解一元函数的最优解,可直接运行,出图(Matlab-based immune clonal algorithm to solve the optimal solution of functions of one variable, and can be run directly out of Figure)
- 2013-03-25 20:47:16下载
- 积分:1
-
pca
PCA主成分分析的matlab代码,可以用来学习原理,效果还不错(PCA principal component analysis can be used to study the principle, the results were pretty good)
- 2012-05-27 12:25:24下载
- 积分:1
-
convolution-of-signals
The following attachment contains codes in Matlab for digital signal processing. In the file code is for digital signal convolution
- 2015-03-03 11:02:05下载
- 积分:1
-
fminco
fminco is a function
- 2012-01-11 21:59:54下载
- 积分:1