登录
首页 » Java » HardWork

HardWork

于 2010-04-27 发布 文件大小:3KB
0 214
下载积分: 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
    说明:  %--- 基本粒子群优化算法(Particle Swarm Optimization)--- ----- %--- 名称:基本粒子群优化算法(PSO) %------作用:求解优化问题 %------说明:全局性,并行性,高效的群体智能算法 (--- Elementary particle swarm optimization algorithm (Particle Swarm Optimization)----------- Name: Elementary Particle Swarm Optimization (PSO )------ role: Solving optimization problems------- Description: overall, parallelism and efficient swarm intelligence algorithm)
    2008-11-13 21:11:20下载
    积分:1
  • PSO_basic
    粒子群的基本算法~~~~~~~~~~!!!!!!!!(basic PSO)
    2012-05-08 09:15:16下载
    积分:1
  • MIMOsiml
    带有相关性MIMO信道仿真程序,仿真的是MIMO平坦衰落信道。(associated with MIMO channel simulation program, based on the MIMO flat fading channel.)
    2007-05-22 17:46:08下载
    积分:1
  • CUSUM
    CUSUM算法程序,使用CUSUM方法检测残差的跳变.(CUSUM algorithm, the use of CUSUM method for detecting residual transition.)
    2021-01-27 20:08:40下载
    积分:1
  • matlab.ebooks_1
    matlab e-book for how to use matlab
    2013-02-01 02:19:49下载
    积分:1
  • scfdma-total
    it a matlab scource code to simulate sfdma
    2014-09-09 03:25:25下载
    积分:1
  • vidc
    Filler routines for different channels and sample sizes.
    2015-03-18 11:26:34下载
    积分:1
  • xiaobo
    用小波变化,在matlab的编程环境下,实现图像的水印算法,很有效地哦(Wavelet change in matlab programming environment for image watermarking algorithm, it is effectively Oh)
    2010-05-06 15:54:40下载
    积分:1
  • SVM
    说明:  支持向量机SVM的MATLAB实现,包括iris数据集、煤炭数据集等。(The matlab implementation of SVM, including iris data set, coal data set and so on.)
    2020-07-06 17:38:52下载
    积分:1
  • sift
    matlab编写,影像匹配,快速获得立体影像的同名像点(matlab written, image matching, quickly access to images of the Conjugate points of stereo images)
    2010-11-07 15:01:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载