登录
首页 » Java » HardWork

HardWork

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

  • BPSK
    说明:  BPSK的MATLAB编码,课堂上作业,采用simulink来做(BPSK的MATLAB编码,采用simulink来做。。。。。。)
    2010-04-07 22:22:40下载
    积分:1
  • bayesthresholding
    it gives brief explanation about Bayesian threshloding
    2013-10-24 00:02:58下载
    积分:1
  • shuzhijifen
    数值积分方法计算积分方程,利用复化辛普森公式离散积分项(Integral equation numerical integration method, the use of complex discrete integral term of Simpson formula)
    2011-11-11 15:06:28下载
    积分:1
  • sum
    此程序写了,任意给定两个数,互相作为底数和指数,再求和。如果不满足条件,报错。(This program was made, any given two numbers to each other as the base and index, and then sum. If does not meet the conditions, an error.)
    2010-12-21 10:44:05下载
    积分:1
  • Rigid_body_dynamic_simulation
    说明:  基于欧拉方程的刚体在无重力空间中动力学MATLAB仿真程序(Based on the Euler equations of rigid body dynamics in the weightlessness of space in the MATLAB simulation program)
    2009-07-28 17:09:04下载
    积分:1
  • ode23tx
    Clever B.Moler 博士的经典著作《Mumerical Computing with MATLAB》介绍的一个ode23简化版ode23tx算法思想及其程序代码。(Clever B.Moler Dr. classics " Mumerical Computing with MATLAB" describes a simplified version of ode23tx ode23 algorithm ideas and program code.)
    2013-09-15 15:54:36下载
    积分:1
  • matlabrumenjingdianjiaocheng
    本书主要是对matlab的详细介绍,并且对一些是自调制进行了仿真。(The book mainly details of matlab, and a number of self-modulation simulation.)
    2009-05-13 21:57:46下载
    积分:1
  • Fountain_toolkit
    its a fountain coding kit
    2013-03-25 14:17:46下载
    积分:1
  • The-PC-mouse-code
    对想了解pc控制鼠标指针的源码的人有帮助,包括windows调用了那些函数,用了那些库文件等。(Would like to know the source pc control the mouse pointer to help people, including those functions called windows, with those library files.)
    2013-12-08 12:15:20下载
    积分:1
  • work
    1 chaos_draw_GCM.m 基于最大标准差绘制的大域耦合相图(GCM);2 chaos_GCM.m 特定参数下的大域耦合状态变量的值的时域及频域图; 3 chaos_simple.m 混沌对初始条件敏感的实验; 4 ICAS.m ICAS系统的评价数据处理; 5 julia.m 朱莉娅集的绘制; 6 logistic.m 逻辑斯蒂克集的稳定点关于参数u的分布(1 chaos_draw_GCM.m drawn based on the maximum standard deviation of the big field coupling phase diagram (GCM) big field coupling state variable 2 chaos_GCM.m special parameter values ​ ​ in the time domain and frequency domain 3 chaos_simple.m Chaos sensitive to initial conditions experimental evaluation data processing 4 ICAS.m ICAS system draw 5 julia.m Julia sets stable point 6 logistic.m logic Si Dike set of parameter distributions u)
    2013-12-12 21:43:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载