-
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
-
mypca
It is the code to implement Principal Component Analysis, which is a very popular factorization method
- 2013-01-30 21:07:16下载
- 积分:1
-
rwimages
for read and write multiple image
- 2014-11-08 14:47:28下载
- 积分:1
-
SM_STBC_4x4_HQT
Ky thuat truyen dan MIMO.
- 2014-12-20 20:11:10下载
- 积分:1
-
MATlAB
应用MATlAB语言处理数字信号与数字图像,从书中提取出來的不分,对初学者来说很不国!(Application of MATLAB language processing digital signals and digital images, extracted from the book, with no distinction, for beginners is not the country!)
- 2007-09-24 11:50:44下载
- 积分:1
-
MatLab_Lcture_2
这是一章山西大学物理系开的matlab课程的课件(This is a Department of Physics, Shanxi University chapter of matlab programs open courseware)
- 2010-08-12 17:36:46下载
- 积分:1
-
matlab
matlab的很多图像处理的实用程序,如图像区域处理、图像颜色处置等.(matlab image processing a lot of utilities, such as image region processing, image color disposal.)
- 2010-12-01 21:08:43下载
- 积分:1
-
code
tricolor attenuation model
- 2011-05-03 00:36:47下载
- 积分:1
-
Double_Polarity_IGBT_Bridges
Double_Polarity_IGBT_Bridges.rar,功率电子领域matlab仿真文件,已经验证过,程序运行正常(Double_Polarity_IGBT_Bridges.rar,Power electronics field matlab simulation file, has already been verified, the normal operating procedures)
- 2013-08-26 22:29:24下载
- 积分:1
-
EIA
2010年WCCI会议发表的二型模糊系统EIA降型方法(Presented in 2010 World Congress on Computational Intelligence, as the latest type reduction algorithm of type-2 fuzzy logic systems. EIA)
- 2015-03-19 15:45:16下载
- 积分:1