登录
首页 » Java » HardWork

HardWork

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

  • 4psk
    4psk的matalab仿真系统,对研究很有用途(Matalab the 4psk simulation system is the use of research)
    2009-05-06 17:17:09下载
    积分:1
  • filter
    matlab image denoising with wavelet transform
    2009-06-16 16:18:12下载
    积分:1
  • 自动多阈值分割
    说明:  用Matlab编写的自动多阈值分割程序,分割图像之前采用自动平滑图像(prepared using Matlab automatic threshold segmentation procedures, image segmentation before the introduction of automatic image smoothing)
    2006-01-09 10:36:59下载
    积分:1
  • EKF
    EKF的简单程序,初学者可以看下,对那几个公式的理解(A simple EKF program, beginners can see, on the formulas of the understanding )
    2012-05-06 11:01:38下载
    积分:1
  • WirelessSensorNetSimulation
    RSSI定位技术,基于接受信号强度的定位算法的ui仿真系统(RSSI positioning technology is based on the UI simulation system of location algorithm based on signal strength.)
    2020-09-25 14:57:47下载
    积分:1
  • 光伏逆变MPPT_2
    说明:  包含单相光伏逆变器及最大功率点跟踪,可以实现电流内环及电压外环控制(Including single-phase photovoltaic inverter and maximum power point tracking, can achieve current inner loop and voltage outer loop control)
    2020-06-27 20:37:07下载
    积分:1
  • UWBBPSK
    这个文档采用BPSK超宽带系统。接收器是一个相关接收机具有集成低通滤波器和比较器的门限的选择(This m file models an UWB system using BPSK. The receiver is a correlation receiver with a LPF integrator and comparators for threshhold selection)
    2014-08-08 17:13:13下载
    积分:1
  • ExcelReader
    matlab实现gui界面读取excel,实现了读取类目与显示结果的结合。(Matlab implements the GUI interface to read excel, combined with the read category and display results. )
    2016-01-19 12:18:57下载
    积分:1
  • xiangduiwucha
    说明:  进行预测或分类后,用此来进行误差计算,得到误差图(After forecasting or classifying, the error figure can be obtained by calculating the error with this method.)
    2020-06-23 15:20:01下载
    积分:1
  • jibenyiqunjulei
    最基本的蚁群聚类算法,适合初学者研究学习(The basic ant colony clustering algorithm, suitable for beginners of learning)
    2011-05-02 10:53:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载