登录
首页 » Java » Employee

Employee

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

代码说明:

  创建四个类,分别为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 个回复

  • 棋盘覆盖
    说明:  带界面的棋盘覆盖算法,很好的参考价值,有封装,需要解码一下。(ChessBoard Algorithm with JAVA)
    2020-05-28 13:03:54下载
    积分:1
  • six-way-to-improve-your-cPP
    提高C++的编程能力,使你的编程能力迅速达到一个高度。(Improve the C++ programming skills, so you quickly achieve a high degree of programming skills.)
    2011-05-23 19:18:17下载
    积分:1
  • htkbook.pdf
    这是一本关于HTK软件的使用说明手册,有详细的每个命令的说明,还有简单的例子。(This is a book about HTK software instructions manual, a detailed description of each command, and simple example. )
    2011-05-24 21:41:55下载
    积分:1
  • MAN
    Start the thread of the case hope to give you some help(Start the thread of the case, hope to difference you some help)
    2017-04-07 20:58:42下载
    积分:1
  • VB中基于TCPIP协议的点对点文件传输源代码,了解网络传输协议...
    VB中基于TCPIP协议的点对点文件传输源代码,了解网络传输协议-VB-point based on TCPIP protocol file transfer the source code to understand the network transport protocol
    2022-05-28 03:06:12下载
    积分:1
  • ay171
    The true extent of the value of the intermediary measure, measure the true extent of the agency based on the value of image segmentation PLS PLS toolbox, matlab implements five gray correlation degree computing model.
    2017-08-21 15:41:25下载
    积分:1
  • 在同一个线中实现异步套接字的聊天序,用以音视频…
    在同一个线程中使用异步套接字实现聊天室程序,避免了不读数据时出现阻塞-In the same thread realize the use of Asynchronous Sockets Chat procedures to avoid non-blocking when reading data
    2022-01-22 02:10:31下载
    积分:1
  • ss
    说明:  移动电话主要采用频率复用,但分配给移动电话的频段很少,远不能满足用户的需要。 因此就提出将地区划分成小区,称为蜂窝(Cell),每个蜂窝内使用一组频率,相隔一段距离后,相同的频率又可重复使用。 (The main use of mobile phone frequency reuse, but allocated to the small-band mobile phone, far from being able to meet the needs of users. Therefore proposed to be divided into residential areas, known as cellular (Cell), each use a set of cellular frequencies, separated by some distance, the same frequency can be reused.)
    2009-04-16 19:32:36下载
    积分:1
  • super simple ASP Forum, the code is simple and suitable for beginners learning A...
    超级简单的ASP论坛,代码简洁,适合ASP初学学习-super simple ASP Forum, the code is simple and suitable for beginners learning ASP
    2022-03-21 06:00:19下载
    积分:1
  • through reading his network programming to understand the new technologies and a...
    通过阅读他能了解网络编程的新技术和应用,好处-through reading his network programming to understand the new technologies and applications, many benefits
    2022-04-12 01:33:49下载
    积分:1
  • 696518资源总数
  • 104432会员总数
  • 16今日下载