登录
首页 » Java » Employee

Employee

于 2013-11-27 发布 文件大小:16KB
0 203
下载积分: 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 个回复

  • FTPUtil
    ftp上传下载实例,java源码为原创,自己的项目代码(ftp upload and download examples of java source code for the original project code)
    2012-11-22 11:34:55下载
    积分:1
  • vs+SQL图书管理系统
    说明:  实现了中等难度的图书管理系统,可以进行图书统计,检索,借阅,归还等等(It realizes a medium-difficulty library management system, which can carry out book statistics, retrieval, borrowing, returning and so on.)
    2020-06-19 23:20:02下载
    积分:1
  • VB6diqu
    今天给大家带来使用文本文件作为数据源的 ComboBox中国城市三级联动的代码。 1.地区库更新非常方便,不会影响到其他功能(区划代码是唯一的)。 2.文本文件读取来速度很快。(n the past, I used VB6 to write an example of three-level linkage of ComboBox in Chinese cities, using MDB database. A few years ago, the code, the regional database is not the latest. Today we bring you the code of ComboBox, which uses text files as data sources, for three-level linkage of Chinese cities. 1. The regionalization library updates are very convenient and will not affect other functions (regionalization code is the only one). 2. Text files are read very fast.)
    2019-06-05 09:34:04下载
    积分:1
  • code
    学习java的辅助资料,可以帮助更好地学习java,包含很多源码(the java code is helpful to the learner,you could learn java more easier.)
    2016-01-15 17:35:24下载
    积分:1
  • islanding
    电力系统中存在孤岛时,利用最小生成树法进行孤岛划分。(Island is in the power system, using the method of minimum spanning tree on an island.Island is in the power system, using the method of minimum spanning tree on an island.)
    2016-04-30 08:27:19下载
    积分:1
  • DrawCircle
    实现画圆,用C++的mfc功能,这个是c语言交互式绘图的必备!(Achieve Circle)
    2013-12-20 00:20:37下载
    积分:1
  • Untitledtiqu
    MATLAB视频提取 MATLABmatlab运动视频跟踪及轨迹显示 值得看(MATLAB video extraction,Motion video tracking and trajectory display are worth watching)
    2020-07-02 09:00:01下载
    积分:1
  • MyWeb3.0
    javaweb博客 可以直接运行的哦!!!!(javaweb blog)
    2013-12-09 09:05:20下载
    积分:1
  • nource
    易语言显示超大图源码,很不错的易语言源码,适合易语言爱好者学习,(Easy language display super large source code, very good easy language source code, suitable for easy language lovers to learn,)
    2018-07-31 20:04:08下载
    积分:1
  • jisuanqi
    C#编写制作一个简单计算器的学习实例源码,精选C#学习源码。(C# prepared a simple calculator learning example source code, select C# learning source.)
    2013-12-17 13:14:42下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载