登录
首页 » Java » HardWork

HardWork

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

  • Fuzzy-Logic
    模糊逻辑控制仿真源代码,希望对大家有帮助(fuzzy logic cntrol Matlab simulation source code)
    2012-02-11 09:15:53下载
    积分:1
  • video-code
    Face tracking code. Tracks face in video focusing skin detection
    2013-08-05 19:59:09下载
    积分:1
  • sound-graph2
    WE NEED PART 2 CODE In MATLAB SOUND DECODEING
    2013-10-07 19:04:29下载
    积分:1
  • pole-placement
    极点配置(Pole Placement)设计是控制系统设计中的一种常用设计方法,它能适应逆不稳系统和开环不稳定系统的情况,并且有设计方法直观、动态性能好、系统稳定的特点。((Pole Placement) pole placement design is a common design approach in the design of the control system can adapt to the inverse unstable system and open-loop unstable system, and intuitive design methods, dynamic performance, system stability characteristics.)
    2012-11-05 17:21:26下载
    积分:1
  • Interpolation_lab1
    The source code of interpolation in DTM course in geomatic
    2011-04-26 04:37:19下载
    积分:1
  • 2400pointdelay
    瑞利信道下的多普勒时延的简单仿真。matlab源码。有图。(Simple simulation of the Rayleigh channel, the Doppler delay. matlab source code. There are Fig.)
    2021-04-21 15:18:49下载
    积分:1
  • GPSR
    This set of MATLAB files contain an implementation of the gradient projection algorithms described in the paper "Gradient Projection for Sparse Reconstruction:
    2013-03-14 03:02:02下载
    积分:1
  • Poincare
    非线形混沌系统的庞加莱图的画法的代码以及其MATLAB m文件代码(Non-linear chaotic system Poincare map of the painting of the code and its MATLAB m-file code)
    2013-09-27 15:47:09下载
    积分:1
  • xz_rot_2changhoptac_DF
    mo phong ve ber cua mang 2 chang voi nut chuyen tiep af co dinh hop tac
    2015-04-10 17:16:16下载
    积分:1
  • project3
    现代信号处理大作业2-2,实现wv分布并画出3d图,指出了信号项和交叉项(2-2 large modern signal processing operations to achieve wv distribution and draw 3d map, pointing out items and cross-term signal)
    2014-01-07 13:51:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载