登录
首页 » Java » HardWork

HardWork

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

  • Fractional_Differential_Equations_of_Runge_Kutta_m
    说明:  求解分数阶微分方程的Runge_Kutta方法Fractional Differential Equations of Runge_Kutta method(Fractional Differential Equations of Runge_Kutta method)
    2010-04-16 10:41:38下载
    积分:1
  • main
    基本粒子群算法源代码及解析,解析非常详细(The particle swarm algorithm source code and resolve a very detailed, analytical)
    2012-05-27 19:06:01下载
    积分:1
  • ICAPPG
    用ICA方法分离出脉搏波信号中的运动干扰信号,已经调试通过(ICA to isolate the the movement interference signal pulse wave signal, debugging has been passed)
    2013-03-06 10:55:49下载
    积分:1
  • tanyan
    增压柴油机碳烟生成模型,包括燃烧和传热子模型(Turbocharged diesel engine soot generation model, including combustion and heat transfer submodel)
    2013-03-14 14:33:55下载
    积分:1
  • practica4
    Practica 4 par hacer un robot de 4 grados de libertad simulado en Simulink
    2015-03-18 07:08:39下载
    积分:1
  • DWHT_DCT
    对图像数据做DCT变换及DWHT变换的示例程序,在matlab7下运行正常(Done on the DCT transform of image data and transform DWHT example the procedures in the normal run matlab7)
    2009-06-08 18:17:18下载
    积分:1
  • tsp-solver-for-matlab
    Tsp solver with genetic algorithm for matlab
    2013-01-28 00:38:38下载
    积分:1
  • dct-algorithm-image-fusion
    dct algorithm image fusion
    2014-10-16 16:42:58下载
    积分:1
  • GridMat
    opyright 2013-2014 Fereidoun Ahourai, Mohammad Al Faruque This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
    2015-07-26 18:35:46下载
    积分:1
  • 模型1
    在此建立了车辆悬架的模拟模型,并对其进行了仿真研究(In this paper, the simulation model of vehicle suspension is established and simulated.)
    2019-03-18 16:17:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载