登录
首页 » Java » HardWork

HardWork

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

  • Language
    说明:  拉格朗插值,matlab程序……………………………………………………………………6(Language.m插值算法……………………………………)
    2010-04-09 13:58:26下载
    积分:1
  • CorrelationDimension
    说明:  基于matlab的G-P算法计算关联维数(Based on the GP algorithm matlab correlation dimension)
    2008-11-11 10:21:21下载
    积分:1
  • wilson-two-degree
    wilson—ct法计算多自由度粘滞阻尼系统受地震激励的时程响应的源代码!(The wilson-ct method multiple degrees of freedom viscous damping system response by the time of the earthquake excitation source code!)
    2012-11-28 21:00:30下载
    积分:1
  • lagrange
    说明:  lagrange插值 快捷计算插值,挺好的.(lagrange interpolation quick calculation of interpolation, quite good.)
    2008-11-19 10:55:26下载
    积分:1
  • work
    说明:  STATCOM电流补偿,可以实现很多无功补偿的功能(Current compensation)
    2020-06-05 09:54:25下载
    积分:1
  • dij2_m
    图论及复杂网络中关于最短路径的Dijkatra算法,简单明了!(Figure dealt with a complex network of Dijkatra on the shortest path algorithm, simple!)
    2011-10-10 16:06:56下载
    积分:1
  • Functioal-Network
    fMRI算功能网络。输入资料为90个AAL脑区的BOLD均值,输出为二值网络(fMRI count function network. The input data for AAL 90 brain regions the BOLD mean, output binary network)
    2012-10-29 11:34:02下载
    积分:1
  • dipum_images_ch09
    dipum_images_ch09 matlab编程实例(dipum_images_ch09 matlab Programming Example)
    2009-09-12 14:05:38下载
    积分:1
  • Hallen3
    说明:  利用矩量法求解Hallen方程 画出场的电流分布(Hallen method of moment equations current distribution appearances painting)
    2011-02-18 11:15:16下载
    积分:1
  • iir-filter-design
    iir滤波器设计,包括 脉冲不变法和双线性变换法等等等(iir filter design)
    2013-12-22 11:06:33下载
    积分:1
  • 696518资源总数
  • 106227会员总数
  • 11今日下载