登录
首页 » Java » HardWork

HardWork

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

  • irisdatasetclustering
    dijkstra algorithm is a algo used for routing purposes, Dijkstra is ver-2 common algorithm.. so enjoy code
    2012-06-18 17:36:23下载
    积分:1
  • multipath
    Machine learning and pattern recognition.
    2015-03-30 17:03:02下载
    积分:1
  • LyapunovExponents_wolf
    说明:  利用wolf法求取Lyapunnov指数,并绘制图形(Method used to obtain Lyapunnov wolf index, and draw graphics)
    2010-04-27 22:34:08下载
    积分:1
  • fig5_SOM
    The sourcecode of Universally-Convergent Squared-Operator Iteration Methods for fig5 using SOM
    2013-12-03 20:55:54下载
    积分:1
  • rbf
    向量机算法中的核函数向量机算法中的核函数向量机算法中的核函数(SVM kernel function)
    2010-07-20 11:47:32下载
    积分:1
  • JASONMARZ2
    主要讲述jeason反演软件的主要流程,对要学习反演的地震解释人员很有用,希望大家多看看(Main main about jeason inversion software process to study the inversion of the seismic interpretation staff was very useful, hope we see more)
    2010-09-01 16:34:47下载
    积分:1
  • timecoding
    Space time coding transmitter receiver matlab codes
    2010-10-25 01:42:52下载
    积分:1
  • 110519PLL
    一个锁相环路,同相正交环路,一阶锁相环,做毕业设计时遇到的。(A phase-locked loop, quadrature-phase loop, the first order PLL, the design experience to do graduate.)
    2011-05-18 08:56:20下载
    积分:1
  • RCB_ICOMP
    Estimates the power spectral densities (PSDs) using both the ICOMP method and Mallows CL for deciding the diagonal loading.
    2013-12-07 05:03:02下载
    积分:1
  • jensen
    一种噪声辅助数据分析方法,有借鉴意义哦,针对EMD方法的不足。( A noise auxiliary data analysis method, There are reference Oh, For lack of EMD.)
    2017-03-06 19:16:33下载
    积分:1
  • 696516资源总数
  • 106679会员总数
  • 14今日下载