登录
首页 » Java » HardWork

HardWork

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

  • 305800Arnold
    基于Arnold变换的matlab实现 各种置乱算法简介(Matlab implementation based on Arnold transform us all scrambling algorithm)
    2010-05-25 17:22:55下载
    积分:1
  • AGWN_BER
    高斯白噪声信道下原信号的误码率特性,仅供参考(Gaussian white noise channel bit error rate characteristics of the original signal)
    2010-05-29 20:51:01下载
    积分:1
  • threebody
    求解三体问题,并画动态图像。同时含有解释三体问题的pdf文件(Solving the three-body problem, and draw a dynamic image. Also contains a pdf file explaining the three-body problem)
    2012-06-27 23:22:10下载
    积分:1
  • wang_retinex
    对应汪荣贵基于暗原色先验模型的Retinex算法程序,程序是我自己通过学习他的论文根据论文编写的,大家可以看看。(WANG Rong-gui dark colors correspond to a priori model based on Retinex algorithm, the program is my own by studying his thesis based on papers prepared, we can see.)
    2013-09-21 15:23:58下载
    积分:1
  • KalmanAlgorithm
    Kalman是一种重要的数字预失真的算法,一种自适应算法(Kalman is an important digital pre-distortion algorithm, an adaptive algorithm)
    2012-01-10 22:40:46下载
    积分:1
  • MATLAB-for-Engineers
    MATLAB在工程方面编程的书籍,第三版,内容比较详细(MATLAB for Engineers )
    2015-03-31 11:38:24下载
    积分:1
  • cartoon_filter
    Code for RealTime Video Abstraction. Using Real-Time Video Abstraction and A Fast Approximation of the Bilateral Filter using a Signal Processing Approach
    2010-11-30 17:38:33下载
    积分:1
  • wavelets-60733
    wavelet edge detecter as a matlab source
    2011-05-24 20:03:25下载
    积分:1
  • 3-1LpLas
    这是一个拉普拉斯系统分析仿真的Systemview源代码。(This is a Laplace System Simulation Systemview source code.)
    2007-04-07 10:18:23下载
    积分:1
  • continuous-PID-simulation
    连续系统的PID的simulink仿真模型(PID simulink continuous system simulation)
    2014-09-10 19:51:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载