登录
首页 » Java » HardWork

HardWork

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

  • reliefF
    reliefF源码 用法及说明 简单易懂的(reliefF source usage, and easy to understand instructions)
    2020-06-29 19:40:02下载
    积分:1
  • TRETE
    完美非均匀质量载荷压电薄膜,这是一个MATLAB程序,可以运行。(Perfect non-uniform mass loading piezoelectric film, which is a MATLAB program that can run.)
    2013-12-02 09:48:46下载
    积分:1
  • ex6
    program that will calculate how many odd integers in a given interval from 1 to N, where N is entered through the keyboard. The program will print out the total number of odd numbers in a given interval as the product of all odd numbers in that interval. As a result, the program should print "at intervals of 1 to N has <x> odd numbers and their product is <proizvod>.".
    2014-02-04 18:16:03下载
    积分:1
  • ip1
    inverted pendulum file
    2009-05-12 22:34:51下载
    积分:1
  • ShapeContext
    形状上下文的matlab源码,执行demo1.m和demo2.m两个文件可以查看效果(Shape context)
    2021-01-22 19:58:45下载
    积分:1
  • FEM
    有限元计算污染传播速度的实例。包含了离散求解微分方程的编程算法(this code is an exemple of finite element modelisation. it can solve an physic problem, and simulate it.)
    2013-03-21 23:11:20下载
    积分:1
  • java
    screipt jVa dengan jquery menambha data
    2015-01-05 21:12:44下载
    积分:1
  • mfccshibie
    利用mfcc实现信号的识别分类,matlab仿真程序,作为分类器使用(Mfcc signal identification classification matlab simulation program)
    2012-11-25 13:06:16下载
    积分:1
  • mimo_resource_allocation
    两篇硕士论文 关于mimo下资源分配和自适应传输(2 MIMO under the master s thesis on resource allocation and adaptive transmission)
    2007-12-13 09:16:06下载
    积分:1
  • CP0801
    说明:  根据IR-uwb信号的特点,仿真其发射和接收的情况。(According to IR-uwb signals, the simulation of the transmission and reception of the situation.)
    2011-03-04 15:30:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载