登录
首页 » Java » Employee

Employee

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

  • FaceDetection
    这是一个用java语言编写的弹幕小程序,做出弹幕效果(This is a barrage applet written in Java language to make barrage effect.)
    2018-07-09 11:38:06下载
    积分:1
  • JAVAAPI
    java的帮助文档。编程助手。中文版本。(java help documentation. Programming assistant.)
    2013-05-19 15:47:32下载
    积分:1
  • 串口调试工具,应用Visual Basic的小示例
    串口调试工具,应用Visual Basic编程的小示例
    2022-02-22 02:11:12下载
    积分:1
  • GetColor
    说明:  流行的一个VC++颜色拾取器源代码,现又经完善修正,加入了取色时的颜色提示,接近完美。(The source code of a popular VC ++ color picker has been improved and added color hints when picking colors, which is close to perfection.)
    2020-04-03 15:27:25下载
    积分:1
  • ding
    画逻辑电路图基本功能: 1。文件的保存,打开; 2。添加基本元件; 3。画点,画线; 4。删除元件(Painting the basic functions of the logic circuit diagram: 1. Documents, open 2. Add the basic components 3. Painting point, drawing a line 4. Delete components)
    2007-12-01 09:19:20下载
    积分:1
  • 超声波加四轮
    说明:  超声波检测距离,实现壁障功能,适合初学者入门超声波小车。(Ultrasound detection distance, wall barrier function, suitable for beginners to enter the ultrasonic car.)
    2020-06-21 05:40:01下载
    积分:1
  • e1071_1.6-8
    klaR包与e1071包都可以做朴素贝叶斯分类,本次试验中,klaR包在使用的时候会出现警告,但不影响预测(Both the klaR package and the e1071 package can be used as a simple Bias classification. In this experiment, the klaR package will be warned when it is used, but it does not affect the prediction.)
    2017-12-06 20:25:59下载
    积分:1
  • MiniBlinkPinvoke-master
    C#简单版blink内核webbrowser浏览器开发,优点:文件极小,不像cefsharp动辄就要上百兆大小,这个只需要几百K即可(C# simple version of blink kernel web browser browser browser development, advantages: the file is very small, unlike cefshare, which requires hundreds of megabytes in size, this only needs a few hundred K)
    2019-07-05 10:54:23下载
    积分:1
  • Desktop
    读入10个整数放在数组中,找出并输出10个数中的最大者和它在数组中的序号。(Read 10 integers in an array, to identify and output the maximum number of 10 and its serial number in the array.)
    2011-08-22 15:53:25下载
    积分:1
  • chanpay
    搭建springboot服务器,集成mybatis 手写demo(Build Springboot server and integrate mybatis handwritten demo)
    2020-06-19 07:00:01下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载