登录
首页 » Java » HardWork

HardWork

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

  • 002
    读写器管理(RM)标准,读写器管理标准的相关说明。(Reader Management (RM) standards, reader management standards for instructions.)
    2010-01-09 20:28:39下载
    积分:1
  • matlab
    基于matlab的光学实验模拟,能很好体现matlab在这方面的优点(Optical-based experimental simulation matlab, matlab reflected well the advantages in this area)
    2010-12-25 01:24:30下载
    积分:1
  • multipath4
    多径理解4,理解多径对信号的影响 ,(four multi-path understanding, understanding of the multi-path signals and understanding of the multi-path signals,)
    2007-03-30 19:01:12下载
    积分:1
  • range
    FMCW(调频连续波)雷达测距matlab程序仿真(FMCW radar ranging Matlab program simulation)
    2021-04-11 19:58:57下载
    积分:1
  • CH4--ESC
    《Extremum seeking control and applications》 第四章实例代码 (Extremum seeking control and applications code of the fourth chapter)
    2014-11-03 13:08:31下载
    积分:1
  • FSADA
    旋转Y切-弹性压电薄膜,谐振器的特性计算及分析,用MATLAB编程计算。(Rotated Y-cut- elastic piezoelectric thin film resonator characteristic calculation and analysis, calculated using MATLAB programming.)
    2013-12-02 09:53:27下载
    积分:1
  • equation
    这是用matlab工具箱解决热传导微分方程的一个实例,这里用正六边形、圆形、矩形的三个算例,同时画出来了图像表示温度分布(you can use it to solve the equation and make a picture with matlab,it s easy and straight)
    2014-01-16 10:00:25下载
    积分:1
  • fdtd
    说明:  fdtd 平面波的加入 计算建模 先上传这个,下边的以后补齐(fdtd calculation of plane-wave model to join the first upload of this, after the bottom of the padded)
    2010-03-22 17:24:50下载
    积分:1
  • b
    说明:  定义一个描述X,Y坐标系中点的结构体,并编写判断平面中任意给定的三个点是否在同一直线上的程序。(A description of the definition of X, Y coordinates of the midpoint of structure, and to prepare to judge any given plane is the three points along the same line of procedure.)
    2010-04-14 13:22:12下载
    积分:1
  • Linear_system_2area
    Linear_system_2area modelling
    2014-12-24 03:20:12下载
    积分:1
  • 696518资源总数
  • 105531会员总数
  • 4今日下载