登录
首页 » Java » Employee

Employee

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

  • Quaternion-Based Robust Attitude Control
    说明:  仿真来源:Quaternion-Based Robust Attitude Control for Uncertain Robotic Quadrotors ,IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS。针对四旋翼飞行器系统设计鲁棒控制系统,能够较好的应对干扰和模型不确定性,算法简单,可进行实际环境试验(Source of simulation: quaternion based robot attitude control for unknown robot quadrors,IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS.The robust control system is designed for quadrotor aircraft system, which can better deal with the disturbance and model uncertainty. The algorithm is simple and can be used in actual test.)
    2021-03-24 09:47:34下载
    积分:1
  • ATM
    编写一个控制台程序,模拟在ATM机的存款和取款过程,当输入给定的卡号和密码(初始卡号和密码到数据文件里查看)时,系统能登录ATM系统,根据用户的身份不同显示不同的程序界面;取款   每次取款金额只能为100的倍数,总额不超过2000元,不允许透支。且取款之后,要记录取款的金额和时间。 存款   每次存款金额只能为100的倍数,总额不超过2000元。 修改密码   新密码长度不小于6位,不允许出现6位完全相同的情况,只有旧密码正确,新密码符合要求,且两次输入相同的情况下才可以成功修改密码。(Write a console program to simulate the ATM deposits and withdrawals process, when you enter a given number and password (the initial number and password to the data file view), the system can log in ATM systems, according to the user' s identity different display different The program interface withdrawal amount each withdrawal can only be a multiple of 100, the total does not exceed 2,000 yuan, does not allow overdrafts. And withdrawals after the withdrawal of the amount to be recorded and time. Deposit Amount per Deposit only a multiple of 100, totaling no more than 2,000 yuan. Change Password New Password length not less than six, allowed six identical situation, only the old password is correct, the new password meets the requirements, and enter the same case twice before they can successfully change the password.)
    2013-10-14 22:50:17下载
    积分:1
  • swing
    JAVA图形界面swing的知识点。全面简练。适合初学者(JAVA swing GUI knowledge points. Comprehensive and concise. Suitable for beginners)
    2013-11-12 15:33:13下载
    积分:1
  • 54643547
    VB采用最小二乘法演示如何在VB中实现线性拟合和二次拟合。(VB using the least square method demonstrates how to implement linear and two order curve fitting in VB.)
    2013-11-04 08:22:28下载
    积分:1
  • javaService
    实现即时将数据库信息推送web前台功能,需要数据库支持(Push Station instant messaging capabilities, database support)
    2013-11-19 17:03:28下载
    积分:1
  • step7_errorcode_e
    SIEMENS S7 Handbook error code
    2018-05-22 13:34:19下载
    积分:1
  • channel
    说明:  仿真一个4QAM信号通过莱斯因子为2的随机衰落信道和AWGN信道的过程,计算不同信噪比下的误码率。在Visual Studio下使用IT++仿真。(A 4QAM signal passes through the random fading channel with rice factor 2 and AWGN channel to calculate the bit error rate under different SNR. Itpp emulation.)
    2020-03-02 16:05:40下载
    积分:1
  • 当你正在为数据传输格式困惑时,这篇文章可以借鉴借鉴
    当你正在为数据传输格式困惑时,这篇文章可以借鉴借鉴-When you are confused for data transmission format, the article can draw draw
    2022-01-28 23:15:27下载
    积分:1
  • 得到对方的IP地址,用VC实现,很经典的算法值得收藏
    得到对方的IP地址,用VC实现,很经典的算法值得收藏-be each other"s IP address, with VC, classic collections worthy of the algorithm
    2023-02-08 18:35:04下载
    积分:1
  • VC写的一个局域网、广域网通信软件 文件传输速度最高可达到11.2M/S...
    VC写的一个局域网、广域网通信软件 文件传输速度最高可达到11.2M/S-err
    2022-03-23 11:19:13下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载