登录
首页 » Java » HardWork

HardWork

于 2010-04-27 发布 文件大小:3KB
0 227
下载积分: 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 个回复

  • DIEDAI
    这是用牛顿迭代法求解的关于多元二次非线性方程组的MATLAB程序,正确无误,本人在使用,无误(This is about multiple quadratic nonlinear equations MATLAB program Newton iterative method, and correct, I would use, correct)
    2021-03-26 14:59:13下载
    积分:1
  • Chapter-3_1
    说明:  开关电源SPICE第三章的全部仿真电路。对直流和交流仿真出色(Switching Power Supply SPICE simulation circuit all of Chapter III. Excellent DC and AC simulation of)
    2011-03-09 23:57:46下载
    积分:1
  • trajectory
    控制弹道程序,关于航行器弹道的控制程序,进行定深航行的仿真程序(The program of trajectory)
    2020-08-30 13:08:11下载
    积分:1
  • siftvspca
    software for your use
    2011-12-07 14:58:09下载
    积分:1
  • MCE_Classifier
    用MCE算法训练分类器,用Train.txt里的数据进行训练,用Test.txt的数据进行性能检测(Use MCE training algorithm of MCE to train the classifier, use the training data in Train.txt to train the classifier and use the data in the Test.txt to test the performance of the classifier )
    2015-01-26 17:02:21下载
    积分:1
  • EMD
    经验模态分解分析程序和HHT变换。可完美使用,不需要任何修改!(EMD analysis)
    2013-05-01 16:33:55下载
    积分:1
  • xiaobofenxi
    进行小波分析,在matlab中调用db6函数的七层分解及低频重构(Invoke db6 function seven decomposition and low-frequency reconstruction wavelet analysis in matlab)
    2012-03-10 18:25:43下载
    积分:1
  • kalman-filter
    说明:  经典卡尔曼滤波器代码。对初学者十分有帮助。(Classic kalman filter code, for beginners introduction is very helpful.)
    2011-02-20 11:25:41下载
    积分:1
  • MUSIC
    阵列信号处理的MUSIC算法:经典MUSIC源程序,求根MUSIC算法源程序,波束空间MUSIC算法源程序,基于解相干的MUSIC源程序,基于四阶累积量的MUSIC算法。(MUSIC algorithm array signal processing: classical MUSIC source, Roots MUSIC algorithm source, beam-space MUSIC algorithm source code, source code based on decoherence of MUSIC, fourth-order cumulant based MUSIC algorithm.)
    2021-02-05 20:59:56下载
    积分:1
  • agilitymodeling
    这是一篇关于敏捷建模的文章,主要内容为:敏捷建模的价值观 核心原则 补充原则 核心实践 补充实践 从混乱到有序_ AM的实践如何结合到一起. (This is an article on the agile modeling, the main contents as follows: the values of Agile Modeling the core principles of the core practice of the principle of supplementary practice from chaos to order _ AM practice how to combine together.)
    2007-09-03 16:38:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载