-
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
-
MIMO
MIMO系统程序,MATLAB原程序,运行可以通过(THE sysetem of MIMO)
- 2011-06-24 10:49:55下载
- 积分:1
-
MATLAB_SOURCE_PRODECURE
《matlab及在电子信息课程中的应用》的源码程序;程序中包含基础的语法和应用实例,还包含高级程序应用,里面包含了近18个EXAMPLE文件。适合学习matlab的初级学者。("Matlab courses and in the electronic information in the application" of the source program program includes basic syntax and application examples, also includes an advanced application procedures. Suitable for junior scholars to learn matlab.)
- 2013-08-31 12:51:45下载
- 积分:1
-
yun zhibiao
说明: matlab 基于云模型的模糊综合风险评估源代码(Source code of fuzzy comprehensive risk assessment based on cloud model in MATLAB)
- 2021-03-29 17:19:10下载
- 积分:1
-
MPEG
这个程序实现了MPEG2的视频压缩,用于Internet上视频流的处理(IP流还没有实现),程序的注释相对比较少,所以可能比较难理解些。下载后请先看说明。(This program implements MPEG2 video compression, video streaming for the Internet, the processing (IP flow has not yet achieved), program notes relatively small, it may be more difficult to understand something. Please read download instructions.)
- 2009-10-28 19:33:20下载
- 积分:1
-
L6.1
Game spade and fixed
- 2013-04-16 23:42:57下载
- 积分:1
-
PCA-LDA
it is PCA-LDA matlab code. (feature reduction)
- 2012-01-08 00:54:07下载
- 积分:1
-
IEEE33DG
IEEE33节点含DG遗传算法,简单实用,适合初学者学习,可用于配电网重构(Genetic algorithms, simple and practical, suitable for beginners to learn, can be used for distribution network reconfiguration)
- 2020-11-06 15:09:49下载
- 积分:1
-
welchse
Welch method of spectral estimation.
- 2010-11-02 03:36:39下载
- 积分:1
-
eyes
eyes detection from the face
- 2009-07-17 18:17:15下载
- 积分:1