登录
首页 » Java » HardWork

HardWork

于 2010-04-27 发布 文件大小:3KB
0 106
下载积分: 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
    fundamental principles of space-time coding for wireless communications
    2010-09-12 04:56:30下载
    积分:1
  • gailvtongjimatlab
    本文介绍MATLAB在概率统计中的若干命令和使用格式,希望大家多多支持啊!(in probability and statistics of a number of orders and the use of the format, we hope the generous support ah!)
    2007-06-25 00:30:24下载
    积分:1
  • vunv1
    these files are related to speech processing and adaptive filtering
    2013-08-21 16:16:13下载
    积分:1
  • LSB_test
    在bmp图像中隐藏另一图像,希望对大家有用!(bmp image in another hidden images, useful for all!)
    2006-06-02 16:54:29下载
    积分:1
  • merge_sorted.tar
    Merging programs for various data structures.
    2014-08-07 14:32:23下载
    积分:1
  • PV_Example
    matlab example for photovoltic
    2012-02-16 03:56:11下载
    积分:1
  • GSMSP_Analyzing_GSM_data_in_MatLab
    The GSMSP uses the USRP hardware device to receive data from the GSM band. This data is raw and pretty useless unless filtered correctly.
    2008-04-03 17:32:27下载
    积分:1
  • matlabcode4
    自学Matlab必备的个小程序代码,里面有很多个,需要的下载,还有几个压缩包随后上传,最后一个压缩包(Small program code, which must self-Matlab need to download, there are several compressed packets are then uploaded last a compressed package)
    2012-11-30 19:09:50下载
    积分:1
  • Untitled6
    图像分割,想通过对眼底图像分割进行视盘自动定位(Segmentation, think through the fundus image segmentation disc automatic positioning)
    2016-06-23 10:09:41下载
    积分:1
  • fs2009_32_language_formation
    一个仿真语言进化形成的源程序代码和,文章,很棒的研究思路和仿真资料。 ?( Assumption: language evolved as a means of communicating information between individuals )
    2010-10-03 15:13:58下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载