登录
首页 » Java » HardWork

HardWork

于 2010-04-27 发布 文件大小:3KB
0 242
下载积分: 1 下载次数: 0

代码说明:

说明:  上转型对象 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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • data_fusion
    扩展卡尔曼滤波 信息同步 数据融合算法实现(EKF information synchronous data fusion algorithm)
    2006-06-05 22:50:07下载
    积分:1
  • LFM_radar
    脉冲压缩雷达能同时提高雷达的作用距离和距离分辨率,这是采用线性调频信号的Matlab仿真代码(Pulse compression radar can simultaneously enhance the role of radar range and range resolution, which is the linear FM signal Matlab simulation code)
    2011-07-15 20:45:58下载
    积分:1
  • eg12-zhongleishibie
    《MATLAB神经网络30个案例分析》中的第12个例子,案例12 SVM神经网络的数据分类预测-葡萄酒种类识别。希望对大家有一定的帮助!(The MATLAB neural network analysis of 30 cases of example, 12 cases 12 data classification of SVM neural network prediction- wine species identification. Hope to have certain help to everybody! )
    2013-09-20 16:08:13下载
    积分:1
  • chap10_2
    在一本书上看到一个用实数编码遗传算法求函数极大值(See a real-coded genetic algorithm with demand function maxima in a book)
    2015-04-17 10:14:29下载
    积分:1
  • Sina-Farsiu-MDSP_MATLAB7
    Sina Farsiu 关于超分辨率复原方面的开源软件,MDSP_MATLAB7(Open source software of of Sina Farsiu Superresolution, MDSP_MATLAB7)
    2013-04-16 20:41:31下载
    积分:1
  • xinxilun
    完整的算术编码的编码和译码程序。结合教材:王育民版的信息论与编码。(Complete arithmetic coding and decoding procedures. The combination of teaching: Wang Yumin s version of the theory of information and coding)
    2012-02-05 16:02:19下载
    积分:1
  • ARRAY
    学习阵列初阶和晋级高阶的好书,希望对大家有所帮助!(Introduction to learning and promotion of high-end array of books, and they hope to be helpful to everyone!)
    2007-07-18 08:39:47下载
    积分:1
  • DVB_S2_LDPC
    DVB_S2_LDPC逐位累积编码算法文档及MATLAB仿真(DVB_S2_LDPC accumulated bit by bit encoding algorithm documentation, and MATLAB simulation)
    2010-09-24 23:08:01下载
    积分:1
  • music
    这是一个非常好的MUSIC算法程序,他可以很好的得到分辨率较高的仿真图(This is a very good MUSIC algorithm program, he can get a good simulation of high-resolution map)
    2010-05-20 18:37:31下载
    积分:1
  • pca
    主成份分析的源码,简单易懂,有效代码不超过十行,有注释,注释中注明了代码出处。(The source code of the principal component analysis, easy to understand and effective code not more than ten line, have comments, comments indicate the source the code.)
    2012-05-10 11:19:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载