登录
首页 » Java » HardWork

HardWork

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

  • simplecharrec(III)-update
    charachter recognitiion
    2009-11-25 06:15:46下载
    积分:1
  • zhiliyouxi
    智力游戏 可以在准备数学建模的时候作为练习资料(mathmodeling)
    2010-05-31 18:05:33下载
    积分:1
  • 33333RLS
    RLS算法,用matlab实现,用最小二乘法来实现均衡,程序正确(RLS algorithm, using matlab to achieve, using the least squares method to achieve a balanced and correct procedures)
    2012-09-05 21:49:34下载
    积分:1
  • histogram
    图象直方图及均衡,用matlab实现了图像的直方图算法,以及均衡算法。(Image histogram equalization, using matlab image histogram algorithm, as well as balancing algorithm.)
    2013-11-28 12:27:37下载
    积分:1
  • MATLAB6.0
    该电子书是用MATLAB语言对数值分析进行描述的。例如:矩阵运算,矩阵分解,微分方程求解,函数插值,函数拟合等数值问题。另外对MATLAB绘图进行了一定的介绍。(The book is a numerical analysis using MATLAB language to describe. For example: matrix operations, matrix decomposition, differential equation solving, function interpolation, function approximation and other numerical problems. In addition to the MATLAB graphics, which must be introduced.)
    2010-12-17 21:09:46下载
    积分:1
  • fastKurtogram
    fastkurtogram是法国人编辑的程序,可以用他快速进行故障诊断(fastkurtogram Frenchman editing program, with his rapid fault diagnosis)
    2012-09-16 10:04:49下载
    积分:1
  • kunkao_v56
    用MATLAB实现动态聚类或迭代自组织数据分析,主要为数据分析和统计,D-S证据理论数据融合。( Using MATLAB dynamic clustering or iterative self-organizing data analysis, Mainly for data analysis and statistics, D-S evidence theory data fusion.)
    2016-04-24 17:08:27下载
    积分:1
  • matlab-chengxusheji-yuandaima
    科学运算语言 MATLAB 的程序设计有关的函数代码(MATLAB scientific computing programming language-related function code)
    2008-05-02 08:57:45下载
    积分:1
  • matlab
    这个题目是利用人工神经网络实现对数字调制信号的识别,建立BP网络,并用matlab编程实现仿真。(This topic is the use of artificial neural network to realize the identification of digital modulation signal, the establishment of BP network, and realize simulation matlab programming.)
    2008-05-07 21:56:00下载
    积分:1
  • VC调用matlab中定义的.m文件中的函数的实
    如何在VC中利用matlab的资源呢? 在这里我简要的以一个简单的例子来说明一下如果在VC中调用matlab中定义的.m文件。(how to use Matlab resources? Here, I briefly with a simple example to illustrate what if the VC called defined in Matlab. M documents.)
    2005-04-29 19:13:08下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载