-
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
-
activeContoursSnakesDemo
function [] = splitMerge(x,y)
threshold = 5 0.5 meter
set(1).x = x
set(1).y = y
set(1).check = 0
while 1
allChecked = 1
numSets = size(set,2)
- 2014-08-15 19:33:25下载
- 积分:1
-
wind-diesel-hybrid-power-systems-using-ANN
a good paper about hybrid Diesel Wind systems elevier
- 2015-01-26 06:50:16下载
- 积分:1
-
rar
说明: 风电场随机注入功率潮流计算文件,在IEEE14节点下任意设置风电节点及其注入功率,即可进行潮流计算以及静态安全分析(The power flow calculation file of random injected power of wind farm can be used for power flow calculation and static safety analysis if the wind power node and its injected power are arbitrarily set under IEEE14 node)
- 2020-05-14 10:26:18下载
- 积分:1
-
Untitled
Dijkstra最短路算法,用于求从起始点s到其它各点的最短路.可以应用到不同领域.(Dijkstra shortest path algorithm used to find the shortest path from the starting point s to the other points can be applied to different areas.)
- 2012-05-25 00:32:45下载
- 积分:1
-
asymetrical_three_phase
asymetrical three phase inverter for ev
- 2013-04-01 16:50:37下载
- 积分:1
-
waiwenziliao
基于matlab2013a的simulink仿真,包括改进型插入式重复控制、pdff以及电机矢量控制仿真程序,为达到好的效果有些参数需要自己调试,希望大家的学习有所帮助~。(Based matlab2013a the simulink simulation, including improved plug-in repetitive control, pdff and motor vector control simulation program, in order to achieve good results and some parameters need to own debugging, we hope to learn some help ~.)
- 2013-12-07 18:03:49下载
- 积分:1
-
matlab数据做图
说明: 主要是对数据做初级滤波和组合分析,其实就是对多路数据做了采集并组合做图(Primary filtering and combination analysis of data)
- 2020-06-24 22:00:02下载
- 积分:1
-
DemoGUI
采用matlab进行GUI设计的一个实例(GUI design using matlab to an instance of)
- 2011-05-15 10:20:38下载
- 积分:1
-
fastica-MaxLikelihood
Blind signal seperation method using maximum likelyhood method
- 2013-08-10 04:36:26下载
- 积分:1