登录
首页 » Java » HardWork

HardWork

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

  • 2008080115450279
    MATLAB教程和一些通俗的实例,为新手上路,更快更好的理解MATLAB服务(MATLAB tutorial and a number of popular examples of the road for the new, faster service and better understanding of MATLAB)
    2009-06-14 14:43:00下载
    积分:1
  • Range-and-azimuth-compression
    雷达成像技术包含(一)线性调频信号的匹配及源代码;(二)雷达采集信号的距离向压缩及源代码(三)雷达采集信号的距离徙动校正与方位向压缩及源代码(The radar imaging technique include (a) linear FM signal matching and source code (b) the distance of the radar signal acquisition to the radar signal acquisition, compression and source code (c) distance migration correction and azimuth compression and source code)
    2012-04-26 21:08:44下载
    积分:1
  • 123
    夫琅禾费衍射的几个程序,有单缝衍射,多缝衍射,和矩孔的衍射。(Fraunhofer diffraction of several procedures, single-slit diffraction, multi-slit diffraction, diffraction and the moment the hole.)
    2011-09-01 18:52:10下载
    积分:1
  • houLMS
    本程序讲述雷达数字波束形成技术的LCMV技术的matlab仿真。(This program about radar beam-forming technology of digital LCMV technology of matlab simulation.)
    2012-03-05 20:47:40下载
    积分:1
  • MembraneSeparaion
    ANFIS Network For Prediction Of Data
    2014-12-17 04:02:27下载
    积分:1
  • dsss_main
    实现基于BPSK的直接扩频信号调制,并显示出各阶段信号波形。(Direct-based BPSK modulated spread spectrum signal, and shows the signal waveform of each phase.)
    2013-11-09 15:11:37下载
    积分:1
  • lpc2mat
    在数字图像处理中,运用MATLAB中的函数lpc2mat可以实现图像的一维线性预测编码(In digital image processing, the use of the MATLAB functions lpc2mat can achieve the image of the one-dimensional linear predictive coding)
    2013-04-24 00:54:09下载
    积分:1
  • sax
    Symbolic Representations of Time Series... SAX is just as good as other representations, or working on the raw data for most problems (Slides shown at the end of this presentation)
    2009-03-13 00:14:41下载
    积分:1
  • HengXiang-RLS
    一个横向均衡器的MATLAB仿真,采用了自适应算法中的RLS算法(MATLAB simulation of a transverse equalizer, using the adaptive algorithm RLS algorithm)
    2014-02-10 18:12:43下载
    积分:1
  • yyzq
    语音增强程序 可以作为参考使用,区分清辅音和拙辅音!!!(Speech enhancement procedures can be used as reference!!!)
    2014-12-25 17:04:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载