登录
首页 » Java » HardWork

HardWork

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

  • Music-classification
    音乐分类的几种方法,解决传统音乐风格划分的模糊性。(Music classification are several ways to solve the traditional music style by vagueness.)
    2013-04-15 16:46:42下载
    积分:1
  • GUIdigitalbeamformingalgorithmlibrary
    使用matlab的GUI工具做的数字波束形成算法库,共两个m文件。(Using matlab to do the GUI tools of digital beamforming algorithm library, a total of two m files.)
    2009-03-20 01:08:53下载
    积分:1
  • wenli
    使用matlab对多幅图像进行傅里叶变换,并将变换后的图像进行比较输出(The use of multiple images matlab Fourier transform, and transform the image to compare the output)
    2009-05-14 17:23:33下载
    积分:1
  • midfilter
    语音处理的短时时域处理技术中的短时中值滤波(voice when dealing with the short-time domain processing technology of short-term median filtering)
    2006-06-09 15:52:03下载
    积分:1
  • weighter_filter
    实现对彩色图像边缘检测、灰度处理、二值化等具体的图形图像处理内容(Realization of color image edge detection, gray processing, binary image processing such specific graphic content )
    2012-04-06 21:09:36下载
    积分:1
  • Newton
    1、使用牛顿法求sqrt(2); 2、用牛顿法求 fx=(x-1)*(exp(x-1)-1)的误差以及误差比; 3、用牛顿法及其他两种方法求 fx=x^4-4*x+x^2的重根 (1, using Newton' s method for the sqrt (2) 2, using Newton' s method for the fx = (x-1)* (exp (x-1)-1) error and error ratio 3, using Newton' s method and the other two method, to calculate fx = x ^ 4-4* x+ x ^ 2 re-root)
    2011-11-04 13:59:40下载
    积分:1
  • WiMAX-Simulator
    Abstract—In this article we provide a thorough stability analysis of two well known adaptive algorithms for equalization based on a novel least squares reference model that allows to treat the equalizer problem equivalently as system identification problem.
    2012-04-27 19:38:45下载
    积分:1
  • PLS_model_toolbox
    PLS回归模型matlab代码,可直接调用(PLSregression model matlab code,it can be called directly)
    2013-08-28 09:15:37下载
    积分:1
  • 算法联系 - 副本
    说明:  求解非线性方程组,迭代法,数值分析,不动点迭代法(Solving nonlinear equations)
    2019-12-30 22:43:32下载
    积分:1
  • matlabconductphoto
    说明:  利用MATLAB编写的一些图形处理方面的程序,非常适用。(Prepared to use some of MATLAB graphics processing procedures, is very applicable.)
    2008-09-08 10:06:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载