登录
首页 » Java » Employee

Employee

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

  • tempxgboot
    说明:  气象因素 :全球海平面气温 二氧化碳浓度 太阳总辐照度 利用气象因素和xgboost预测未来25年气温变化(Meteorological factors: global sea level temperature, carbon dioxide concentration, total solar irradiance Prediction of Temperature Change in the Next 25 Years Using Meteorological Factors and xgboost)
    2020-10-09 06:17:36下载
    积分:1
  • jiatinglicaigongju
    用Java 编写的家庭理财工具 十分完整 十分强大(Written using Java is a complete family financial management tool for very strong)
    2009-12-19 09:39:50下载
    积分:1
  • 一个自动拨号的工具,是在codeproject网站下载的,能方便实现有线和无线的modem的快速拨号。...
    一个自动拨号的工具,是在codeproject网站下载的,能方便实现有线和无线的modem的快速拨号。-an automatic dial-up tool, in codeproject website. can facilitate the achievement of wired and wireless modem speed dial.
    2022-10-26 10:25:03下载
    积分:1
  • 本文介绍了C#中如何使用System.Net.Socket来进行基于TCP协议的通信,该文是以读取服务器系统时间这么一个简单例子来说明的。...
    本文介绍了C#中如何使用System.Net.Socket来进行基于TCP协议的通信编程,该文是以读取服务器系统时间这么一个简单例子来说明的。-This paper introduces the C# System.Net.Socket how to use TCP-based communications program, the text is based on the server time to read such a simple example to explain.
    2023-02-27 08:45:04下载
    积分:1
  • RunExesvc
    本软件以windows服务程序方式运行。 安装,执行install.bat,卸载执行uninstall.bat 配置:RunExe.ini。ExeRun设定运行程序,RunTime设定执行时间,可以是多个时间,运行后30分钟,自动关闭调用的程序。 仅当windows处于用户窗口登录状态时,也就是explorer.exe运行时,才执行。 执行时,被调用的程序显示窗口。 服务程序自动调用程序运行,并显示程序窗口。 当判断到Explorer在运行时,将根据设定时间,自动调用程序运行,30分钟后如果调用执行的程序未关闭,则自动将其关闭。(This software runs in the way of windows service program. Install, execute install. bat, uninstall. bat unload Configuration: RunExe.ini. ExeRun sets the running program and RunTime sets the execution time, which can be multiple times. 30 minutes after running, the calling program is automatically closed. Windows is executed only when it is in the user window login state, that is, when explorer.exe runs. When executed, the called program displays the window. The service program automatically calls the program to run and displays the program window. When it is judged that Explorer is running, the program will be automatically invoked according to the set time. If the program is not closed after 30 minutes, it will be automatically closed.)
    2020-06-25 02:00:02下载
    积分:1
  • 绘制曲线
    EQ均衡器曲线, SigmaStudio 各种滤波算法实现如全通,高通,低通,带通,EQ等等(EQ equalizer curve, Sigma Studio filtering algorithms such as all-pass, high-pass, low-pass, band-pass, EQ and so on)
    2020-12-01 21:29:26下载
    积分:1
  • GexfGenarate
    用于生成gexf格式的数据文件,为后续的可视化开发服务(Used to generate data files in gexf format, serving for subsequent visualization development)
    2020-06-17 03:20:01下载
    积分:1
  • guess
    随机产生数据,输入大小值,大了或小了都有显示。还可以继续玩,如果猜对的话,也可以退出 (Randomly generated data, the value of the input size, big or small are displayed. Can continue to play, if you guess right, you can exit)
    2011-10-14 21:09:57下载
    积分:1
  • F__1562205512848
    说明:  java 操作文件写入,读取。。。。。。。。。。。。(Java operation file write, read)
    2020-06-25 17:00:02下载
    积分:1
  • 7
    说明:  一个利用java连接数据库的原来,利用javabean连接数据库!(Java to connect a database using the original, using JavaBean connect to database!)
    2007-10-12 21:03:46下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载