登录
首页 » Java » HardWork

HardWork

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

  • 1
    说明:  数字信号处理 典型序列的Matlab实现和序列的卷积运算(Digital signal processing to achieve a typical sequence of Matlab Convolution and serial computing)
    2009-06-02 15:24:50下载
    积分:1
  • GP
    说明:  用GP算法解决时间延迟、关联维、延迟窗口,以及他们之间的关系(GP algorithm used to solve the time delay, correlation dimension, delay window, and the relationship between them)
    2010-05-01 21:13:54下载
    积分:1
  • SER_gai2
    两个频率的凹口滤波的干扰对消噪声,采用了SER算法,可以和LMS算法来做比较。(Filtering the interference of the two frequencies of the recess on the noise-cancellation of the SER algorithm, and the LMS algorithm for comparison.)
    2013-03-10 19:05:03下载
    积分:1
  • decomp_reconst
    Decompose image into subbands, denoise, and recompose again. fh = decomp_reconst(fn,Nsc,Nor,block,noise,parent) Javier Portilla, Univ. de Granada, 5/02 Last revision: 11/04
    2010-08-14 20:20:19下载
    积分:1
  • Recognitionmage
    车牌识别图片,是利用图像复原的效果图。图像复原的效果图(License Plate Recognition pictures, the effect of the use of image restoration plan. The effect of image restoration plan)
    2010-05-26 19:59:59下载
    积分:1
  • iteratedbackprojection
    此函数包含了IBP算法的matlab源码程序,共享给大家共同学习(This function includes the IBP algorithm matlab source program, to share common learning)
    2021-03-04 10:29:32下载
    积分:1
  • 66745
    The following Matlab project contains the source code and Matlab examples used for inverse kinematics for a 3dof robot arm. authors michael miranda and renato salinas. Uses optimization to find the spatial location of each axis articulator.
    2015-03-12 11:10:02下载
    积分:1
  • Charged-electric--ring
    带电圆环的电势分布图,利用matlab求解带电圆环的电势分布图(Charged electric potential distribution ring)
    2020-11-05 16:19:52下载
    积分:1
  • GRISES
    Management grays in image processing, vision for compuntadora
    2015-10-17 21:32:48下载
    积分:1
  • surce_randon
    说明:  Randon data from program
    2019-05-12 01:42:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载