登录
首页 » Java » HardWork

HardWork

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

  • Fast_Walsh_Hadamard_Transform
    最小的增广拉格朗日并交替方向算法应用matlab实现( Minimization by Augmented Lagrangian and Alternating Direction Algorithms use matlab to implement)
    2009-11-10 14:57:17下载
    积分:1
  • C10270014-zff
    通过对抽油杆运动规律的分析并结合简易的几何图形,计算出光杆悬点运动的位移函数,从而得出光杆运动的速度函数和加速度函数,并且通过MATLAB软件给出了位移函数图象,及其与有荷载的附件1的悬点位移数据的比较图。(Through the analysis of the sucker rod motion law and combining the simple geometric shapes, calculate the polished rod suspension point displacement function, calculated the functions and the acceleration of the polished rod motion speed, and displacement function is given by MATLAB software image, and its suspension with a load of attachment 1 point displacement data comparison chart.)
    2013-09-20 15:01:22下载
    积分:1
  • ada_Boost
    卡尔曼滤波算法程序 和集成学习算法程序。(Kalman filter algorithm program)
    2018-02-02 11:13:22下载
    积分:1
  • lab-2
    simple matlab interface some text, edit, radio, popup buttons
    2011-12-20 00:05:59下载
    积分:1
  • trismooth
    实现MATLAB对茶壶采集的的点云数据网格生成,并细化(MATLAB to achieve the collection of the teapot point cloud data grid generation, and refinement)
    2015-08-24 21:08:04下载
    积分:1
  • Software-IPCA
    Incremental Principal Component Analysis
    2011-05-02 22:22:48下载
    积分:1
  • gpml-matlab-v3.2-2013-01-15
    这是关于高斯过程国外人写的经典程序,可用于预测、分类等。(This is a Gaussian process abroad written about the classic procedure, can be used for prediction and classification.)
    2013-07-22 08:29:39下载
    积分:1
  • Image-binarization-processing
    利用matlab的GUI设计的图像二值化处理的可视化界面,包含所需的操作界面和m文件,可对图片进行导入、二值化处理及保存等操作。 (A visual interface of image binarization processing designed by Matlab GUI.It contains the desired interface and m file, you can import the picture, do binarization processing and preserve the new image.)
    2013-09-22 10:21:48下载
    积分:1
  • OFDM
    完美的OFDM系统的MATLAB仿真程序,希望对研究OFDM的同志有所帮助(Perfect simulation program MATLAB OFDM system, in the hope of OFDM help comrades)
    2010-10-11 17:09:27下载
    积分:1
  • MATLAB_CR-toolbox
    基于参数和非参数的多种频谱检测算法研究及仿真结果分析。(Based on the parameters and non-parametric multi-spectrum detection algorithm research and analysis of simulation results.)
    2009-01-08 12:14:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载