登录
首页 » Java » HardWork

HardWork

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

  • screencapture
    screen capture utility for matlab
    2009-06-04 01:06:12下载
    积分:1
  • myOQPSK
    OQPSK的matlab/simulink仿真程序(OQPSK the Matlab/Simulink simulation program)
    2006-11-10 18:46:35下载
    积分:1
  • figure11
    相控阵雷达的MIMO的仿真,对于雷达中的仿真(MIMO simulation of phased array radar, radar simulation)
    2013-04-15 19:58:31下载
    积分:1
  • toupiea
    Scalp EA, very classic and practical, like friends can be learn about
    2015-03-31 16:01:04下载
    积分:1
  • Sample_Chapter
    bestEbook : Programming in MATLAB ebook
    2013-08-06 06:16:44下载
    积分:1
  • CSTcode
    Class shape function method to parametrize airfoil geometry
    2017-02-15 20:07:39下载
    积分:1
  • rs
    说明:  使用matlab软件写的一个实现rs译码的小程序,适合初学看看(rs decode and encode)
    2009-02-25 22:25:57下载
    积分:1
  • Exp2TODonly
    MATLAB simulation of group velocity dispersion in an optical fiber
    2011-02-10 22:26:06下载
    积分:1
  • Matlab-in-time-series-analysis
    介绍了使用Matlab进行时间序列分 析的基本方法和步骤,并通过实例进行了说明. (Describes the use of Matlab for time series analysis of the basic methods and procedures, and illustrated by examples.)
    2011-08-07 14:49:29下载
    积分:1
  • fdmex_windows
    face detection achieved by matlab downloaded form u of a
    2007-08-24 14:13:02下载
    积分:1
  • 696518资源总数
  • 104384会员总数
  • 26今日下载