登录
首页 » Java » HardWork

HardWork

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

  • Falcon-Driver-Codes
    Running and test Falcon robot
    2014-08-11 16:13:54下载
    积分:1
  • HW-4-Convolutional-Codes
    bcjr convolutinal code
    2013-03-02 02:31:50下载
    积分:1
  • 73codes
    (7,3)线性分组码的译码过程和产生过程,此程序为信息课的作业((7,3) linear block code decoding process and the production process, this process work for the information class)
    2010-11-25 13:11:06下载
    积分:1
  • dynamic-simulink
    前人提出的众多发酵动力学模型的基础上,结合工业乙醇连续发酵的实际情况,首先对经典的流加半经验半理论模型进行动态和稳态仿真,之后为了与实际生产过程联系更加紧密,逐步将温度,气体排放等因素考虑到模型中去,进行综合性仿真。最后再结合GUI技术,以动力学模型为核心,以人机界面友好为目标,制作乙醇连续发酵仿真软件,将脚本语言编程技术和模块化仿真技术结合起来,建立起工业乙醇发酵的仿真平台。(Made numerous predecessors fermentation kinetics model based on the combination of industrial ethanol continuous fermentation of the actual situation, the first of the classic semi-fed semi-empirical model for dynamic and steady-state simulation, after which the actual production process for closer ties, gradual temperature, gas emissions and other factors into the model to carry out a comprehensive simulation. Finally, combining GUI technology to kinetic model as the core, friendly interface for the target, producing continuous ethanol fermentation simulation software, the script language programming techniques and modular simulation technology combine to build industrial ethanol fermentation simulation platform.)
    2013-10-29 17:21:35下载
    积分:1
  • genetic
    说明:  采用遗传算法进行优化的MATLAB程序 ,此处计算的是阻抗变换器的优化 (Genetic algorithm to optimize the use of the MATLAB program, here is the calculation of the optimal impedance converter)
    2009-08-10 20:14:43下载
    积分:1
  • alaw
    THIS is the program for a law companding...
    2013-07-23 22:38:01下载
    积分:1
  • juzhen
    两个简单的创建矩正,以及矩阵中元素替换,重组矩阵的matlab源码(Two simple moments are created, as well as replacing the matrix elements, reorganization matrix matlab source)
    2015-03-21 16:29:58下载
    积分:1
  • feixianxingweifennihe
    已知一时变二次微分方程,用matlab求其仿真(Known time-varying quadratic equations, seeking its simulation using matlab)
    2015-04-09 21:47:21下载
    积分:1
  • 交直流混联系统统一迭代法-IEEE9
    说明:  利用matlab进行编程,交直流混联系统9节点潮流计算程序(9-node power flow calculation program for AC / DC hybrid system)
    2021-05-10 10:59:33下载
    积分:1
  • MFCC
    MFCC program,is written by my son,you can use it very simply!
    2010-01-19 18:58:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载