登录
首页 » Java » Employee

Employee

于 2013-11-27 发布 文件大小:16KB
0 216
下载积分: 1 下载次数: 6

代码说明:

  创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。 (Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • mymapp
    用C++中的MFC编程实现正轴等角割圆柱投影,实现以下要求: 取克拉索夫斯基椭球 (1)制图区域: Bs=0°, BN=25° LE=105°, LE=125° (2)经纬线间隔: ΔB=ΔL=5° (3)制图比例尺: 1:M0=1:1000 000 (4)标准纬线: Bk=±15° 计算经纬网格点的 x, y,m,n, p (With C++ Of MFC programming is cutting Conformal cylindrical projection axis to achieve the following requirements: check克拉索Malinowski ellipsoid (1) mapping the region: Bs = 0 °, BN = 25 ° LE = 105 °, LE = 125 ° (2) latitude and longitude line spacing: ΔB = ΔL = 5 ° (3) Drawing scale: 1: M0 = 1:1000 000 (4) the standard parallels: Bk = ± 15 ° latitude and longitude grid computing point x , y, m, n, p)
    2007-12-03 03:36:43下载
    积分:1
  • 98765789
    VB数学运算实例:分解质因数源代码,有需要的下。(VB Math Example: prime factorization source code, there is need for the next.)
    2013-08-23 11:37:36下载
    积分:1
  • Javashejiyuanma
    说明:  《Java程序设计经典教程》源代码,100 通过编译,是学习Java的好帮手(java)
    2009-07-26 16:09:02下载
    积分:1
  • cluster
    实现聚类分析的几种典型算法,包括Greedy、K-Means、FCM、Xie-Beni等。可以对提供的几个数据库文件进行聚类操作,并显示和统计结果的各项数据。程序具有基于C#的图形界面,操作直观方便。(Cluster analysis of several typical algorithms, Greedy, K-Means, FCM, Xie-Beni, etc.. The cluster provides several database files, and display the data and statistical results. The program has a graphical interface based on C#, easy and intuitive.)
    2013-03-31 04:33:17下载
    积分:1
  • student
    说明:  实现基础的学生信息管理,实现自己定义的链表结构,对学生信息进行存储(Realizing Basic Student Information Management)
    2019-05-09 14:58:41下载
    积分:1
  • XenServerDemo
    连接xenserver 开关虚拟机demo(a demo about connect xecserver power on/off the vm)
    2013-10-18 15:06:05下载
    积分:1
  • c-P-P-pointers-and-references-
    C语言的精华和灵魂是“指针”,但运用的时候却比较容易出错。c++又引入了“引用”的概念,好多人不理解它们之间的区别,本人将结合自己的使用经验,给出一些编程的实例,简单阐述它们之间的区别。(C language, the essence and the soul is "pointer", but the use of it has been more prone to error. c++ and the introduction of the "reference" concept, a lot of people do not understand the difference between them, I will combine their experience, give some programming examples, briefly discusses the differences between them.)
    2013-06-25 14:53:57下载
    积分:1
  • 一些计算方法的运行代码
    说明:  一些简单基础的计算方法用C语言的方式运行进行处理(Some simple basic calculation methods are processed by running in C language.)
    2019-01-07 17:16:14下载
    积分:1
  • 2000
    用java实现的类似于连连看游戏的单词连连看,是本人的本科毕业设计。(Using java to achieve similar to the word game Lianliankan Lianliankan is my graduate design.)
    2008-06-22 22:16:54下载
    积分:1
  • TIJ4-code.tar
    Java 编程思想(第四版)源码 ---------(Thinking in Java Code)
    2010-12-20 21:07:11下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载