登录
首页 » Java » HardWork

HardWork

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

  • space_time_coding
    Space-Time Coding - STC 空时编码技术是信道编码技术和多发送天线技术的有机结合。外文参考资料(Space-Time Coding Branka Vucetic University of Sydney, Australia Jinhong Yuan University of New South Wales, Australia)
    2010-11-30 15:10:55下载
    积分:1
  • allan
    allan variance calculation
    2012-07-23 17:39:13下载
    积分:1
  • bsplinepso
    采用改进的pso算法实现实现bspline曲线拟合,malab语言。(Pso algorithm using the improved implementation bspline curve fitting, malab language.)
    2010-12-15 10:39:00下载
    积分:1
  • Voted_Perceptron
    模式识别工具箱的内容非常好用,找了好久才找到的(The contents of the toolbox is very useful for pattern recognition. Lots of downloads)
    2010-05-28 22:24:08下载
    积分:1
  • AnnInMat
    matlab写的神经网络的几个演示程序,有的是自己写的,有的是根据别人写的改的,bp、rbf、pnn、hopfield等(matlab neural network to write a few demo program, some wrote it myself, some other people to write in accordance with the change, bp, rbf, pnn, hopfield etc.)
    2007-08-13 20:35:43下载
    积分:1
  • tsp
    遗传算法求解tsp问题的matlab代码(Genetic algorithm matlab code issues tsp)
    2009-06-07 00:29:01下载
    积分:1
  • 多用户检测器的性能
    比较LMS,RLS, 和Kalman滤波器多用户检测器的性能(LMS comparison, RLS, and the Kalman filter multi-user detector performance)
    2020-12-09 21:49:19下载
    积分:1
  • Image-processing-source-code
    说明:  图像处理基础算法源代码,此文件含有大多数代码的合集(Image processing algorithms based on source code, this file contains most of the code collection)
    2011-02-28 18:51:01下载
    积分:1
  • UGM
    一个关于无向图推理模型的代码,可用于图像处理(An undirected graph inference on the model code)
    2011-10-28 22:03:30下载
    积分:1
  • deec-VS-leach.matlab
    此代码将leach和deec协议进行比较,对毕设要坐这方面的同学很有帮助,大家有兴趣可以看看。(This code will leach and deec protocol comparison, the complete set up to take the students very helpful in this regard, we are interested can look at.)
    2014-01-20 17:27:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载