登录
首页 » Java » HardWork

HardWork

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

  • WIRELESS_Communication
    是由斯坦福大学的Andrea Goldsmith编著的关于无线通信的教材,很经典.(This book is writen by Andrea Goldsmith who is from Stanford University. It is a classic book for wireless communication.)
    2009-05-12 16:00:10下载
    积分:1
  • Buck
    power electronic-Buck-forward converter-this is a Psim file
    2014-10-31 20:01:24下载
    积分:1
  • LARS
    Matlab code for the LARS algorithm [1], which computes the whole optimal path, by a homotopy approach, for the LAR and Lasso problem in constrained form.
    2013-05-05 13:16:28下载
    积分:1
  • CV
    说明:  图像处理的分割,很经典的MATLAB 算法,适合做CV分割的初学者(cv )
    2014-01-08 10:22:12下载
    积分:1
  • chapter24
    蚁群算法三维路径规划 蚁群算法蚁群算法路径规划(RRT fast random spanning tree algorithm for sorting contain four different versions of the code has been collated all the available version 4 codes are matlab)
    2015-12-23 16:12:52下载
    积分:1
  • nihe
    根据已知数据拟合多次函数,自行修改数据和次数自动生成拟合函数(According to known data fitting multiple functions modify the number of automatically generated data and fitting function)
    2011-01-14 11:51:24下载
    积分:1
  • dipole-antenna
    This contains the dipole antenna from antenna theory
    2013-03-06 23:26:47下载
    积分:1
  • LAMMPS-Manual
    分子动力学计算软件lammps的学习资料。(Molecular dynamics calculation software lammps learning materials.)
    2013-12-09 12:49:01下载
    积分:1
  • ImageQualityMeasures
    image quality measures good for you
    2013-10-20 20:09:42下载
    积分:1
  • DOA-classicial-algorithm
    经典的DOA算法的MATLAB仿真程序,可用于仿真与改进算法进行对比(classical DOA MATLAB )
    2012-03-27 17:16:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载