登录
首页 » Java » HardWork

HardWork

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

  • chap2
    《智能控制》第一版(刘金琨著)第二章程序源码(" Intelligent control" the first edition (Liu Jinkun a) Chapter II program source code)
    2011-04-26 09:34:41下载
    积分:1
  • testy_model
    for fasting implementation of the Multiwall
    2010-12-16 19:41:38下载
    积分:1
  • f2
    说明:  matlab code for derivation of fundamental solution for plasticity in bem
    2011-03-05 04:12:21下载
    积分:1
  • 5er543jimi
    algoritmos utilizados en señ ales matriciales
    2010-09-08 13:33:00下载
    积分:1
  • Monkey
    山上有m只猴子要选大王,选举办法如下:所有猴子从1到m进行编号并围坐一圈,从第一号开始按顺序1,2,...n继续报数,凡是报n号的猴子都退出到圈外,照此循环报数,直到圈内只剩下一只猴子时,这只猴子就是大王.输出大王的编号。 (Mountains have m of the monkeys to elect king, method of election are as follows: All monkeys are numbered from 1 to m, and sitting around a circle, to begin from the first order 1,2, ... n continue to report the number of those who reported that n No. The monkeys are out to outsiders the basis of this report the number of cycles until the circle only one monkey, the monkey is king. Output King number.)
    2009-12-28 14:00:29下载
    积分:1
  • agilent_e3648a
    This is a MATLAB® instrument driver for use with v2.0 of the Instrument Control Toolbox™ and higher. It supports the Agilent E3648A power supply.
    2010-02-26 13:12:19下载
    积分:1
  • SLMS3
    符号LMS算法程序,符号LMS算法程序,符号LMS算程序,符号LMS算法程序(Sign LMS algorithm program, sign LMS algorithm program, sign LMS computer program, sign LMS algorithm program)
    2010-06-03 12:48:40下载
    积分:1
  • MOEA
    说明:  本例程解决了一个两个目标的优化问题,采用的是权重系数法求解。求解过程中采用了代沟。程序中有详细的注释(This routine solves a two-goal optimization problem, using the weight coefficient method. Solving process used in the generation gap. Procedures are detailed in the Notes)
    2008-11-09 11:54:45下载
    积分:1
  • xiangwei
    有关相位测量方面相关的一篇文章,可以帮助大家掌握更多的方法。(The article related to the phase measurement can help to have more methods.)
    2012-04-25 15:22:11下载
    积分:1
  • The-best-Chinese-MATLAB-Tutorial
    MATLAB最好的中文教程,非常适合初学者(The best Chinese MATLAB Tutorial)
    2013-11-07 19:51:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载