登录
首页 » Java » HardWork

HardWork

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

  • XunHuanMaXULI
    仿真计算出(15, 11)系统循环码和(15, 5)系统循环码两种码字在BSC信道下的误码率性能曲线(Simulation of the (15, 11) cyclic code and the system (15, 5) cyclic code system of two code words in the BSC channel BER performance curve)
    2011-04-24 12:30:26下载
    积分:1
  • movingstar
    一个会动的五角星,应用matlab软件编程。(A moving star,using matlab program.)
    2013-09-08 15:30:36下载
    积分:1
  • speech_toolboxes
    说明:  Matlab语音处理工具箱《Matlab之语音处理与合成工具箱》(Speech Processing Toolbox Matlab &quot Matlab toolbox for speech processing and synthesis,&quot )
    2010-04-18 20:51:38下载
    积分:1
  • OFDM_pulse_compress_nogate
    雷达ofdm信号 采用多脉冲发射 利用通信原理中ofdm多载频技术 绝对好用 毕设代码(radar ofdm signal)
    2021-03-16 22:29:21下载
    积分:1
  • matlab-lp
    matlab 求解线性规划的例题 讲解详细(matlab for solving linear programming to explain in detail )
    2009-11-05 19:40:16下载
    积分:1
  • fsk
    this project is about phase shift keying
    2013-01-04 18:20:51下载
    积分:1
  • qianbihuahuizhi
    基于图象的铅笔画绘制,图形图象处理范围的内容。(Image-based pencil drawing, graphics, image processing range of content.)
    2010-11-09 09:01:03下载
    积分:1
  • two_d_truss_F06
    2D truss Analysis with matlab
    2010-05-30 03:53:51下载
    积分:1
  • yydd2mmdd
    程序将一年中的天数转换到相应的月份及日期。适用于TLE数据中的日期转换。程序不用if语句,简单易懂高效。输入参数可以是数组形式。(The program will convert the number of days in a year to the corresponding month and date. TLE data for the date conversion. Program without the if statement, straightforward and efficient. Input parameters may be matrix form.)
    2013-07-11 07:44:38下载
    积分:1
  • Examples-of-neural-network-algorithm
    一组神经网络算法实例:有三个M文件组成 Examples of neural network algorithm(Examples of neural network algorithm)
    2014-12-29 18:10:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载