登录
首页 » Java » HardWork

HardWork

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

  • PSO
    这是基本的粒子群算法,里面还附有一个常用的测试函数。(This is the basic particle swarm algorithm, which is also accompanied by a commonly used test functions.)
    2014-09-20 22:47:43下载
    积分:1
  • codelisting
    MATLAB模拟的电磁学时域有限差分法的配套程序(MATLAB simulation of electromagnetic hours FDTD matching program)
    2013-12-04 12:47:09下载
    积分:1
  • Sources
    MATLAB遗传代码的源码 具体如何使用?希望能受到指点(MATLAB specific genetic code of the source how to use? Want to be pointing)
    2009-04-11 15:50:26下载
    积分:1
  • yun-generator
    一维云发生器,matlab编写,比较好用(the yun generator which is good)
    2012-04-10 17:34:29下载
    积分:1
  • ADC_comp
    adc 设计 比较器matlab 模型。(adc comparator)
    2012-06-21 11:04:34下载
    积分:1
  • proje
    MATLAB PROJECT TO SOLVE TRANSPORTATION
    2010-06-09 00:23:01下载
    积分:1
  • rls
    用递推最小二乘法进行系统辨识,包括simulink环境下搭建模型以及源代码(recursive least square (RLS)source code)
    2012-04-11 09:47:52下载
    积分:1
  • nonlinear-system-chua
    仿真Chua电路的双卷波混沌吸引子。 要求:1、每个状态(x,y,z)分别随时间变化的曲线。 2、x-y,y-z,x-z的相图。 3、x-y-z的图形。(Circuit simulation Chua' s double scroll waves chaotic attractor. Requirements: 1, each state (x, y, z), respectively, a graph of changes over time. 2, xy, yz, xz phase diagram. 3 XYZ graphical.)
    2013-03-27 21:26:31下载
    积分:1
  • Introduction_to_word_version_of_MATLAB_based
    MATLAB基础入门word版Introduction to word version of MATLAB based(Introduction to word version of MATLAB based Introduction to word version of MATLAB based)
    2010-08-02 12:09:12下载
    积分:1
  • MATLAB-mingling
    用过matlab的人都知道,其中的命令很多很难记,这下可以为大家解决后顾之忧(used Matlab people know that many of the orders is difficult to remember, Great thought we resolved to worry about!)
    2006-12-21 16:53:50下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载