登录
首页 » Java » Employee

Employee

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

  • vc++001
    VC++ 源代码 文档 共10节 第一节(VC source code files a total of 10 Section I)
    2007-02-11 23:11:52下载
    积分:1
  • 多线服务器,想当于浏览器的功能,一次可以打开多个HTTP连接,当然接收的文件类型有所限制...
    多线程服务器,想当于浏览器的功能,一次可以打开多个HTTP连接,当然接收的文件类型有所限制-multithreaded servers, want the browser function, one can open multiple HTTP connections, of course, receive the file type restriction
    2022-07-16 23:48:43下载
    积分:1
  • SYSIntnetsetdemo,网络相关,设计相关。。。与大家一起分享
    SYSIntnetsetdemo,网络编程相关,设计相关。。。与大家一起分享-SYSIntnetsetdemo, network programming-related, design related. . . With the U.S. share
    2023-03-02 08:45:03下载
    积分:1
  • NuLiing-spring-boot-sample-master
    说明:  SpringBoot 2.2.x 整合其他框架:MyBatis、Dubbo、Swagger2、SpringSecurity、RabbitMQ、RocketMQ、Kafka、Redis、MongoDB、Hazelcast、Apollo等(Springboot 2.2. X integrates other frameworks: mybatis, Dubbo, swagger2, spring security, rabbitmq, rocketmq, Kafka, redis, mongodb, hazelcast, Apollo, etc)
    2021-04-14 22:28:55下载
    积分:1
  • 用于PowerBuilder打印预览,可打印文字和图形并可进行放缩。
    用于PowerBuilder打印预览,可打印文字和图形并可进行放缩。-for PowerBuilder print preview, print text and graphics can be conducted Zooming.
    2022-01-24 14:35:11下载
    积分:1
  • bootstrap-table-master
    说明:  没有功能你想要我写些什么呢?还不少于20个字。。。我去(no everything everybody move go to home)
    2020-06-15 22:23:56下载
    积分:1
  • regress-294
    typeof evaluates unary expressions.
    2014-02-10 14:18:15下载
    积分:1
  • VCPP6.0book
    通过学习VC,能够熟练地掌握VC的各种功能,熟悉编程的整体框架结构,熟悉编程。(By learning VC mastered the various functions of the VC familiar with the framework of the overall structure of the programming, familiar programming.)
    2012-10-16 14:59:01下载
    积分:1
  • PureRAT v6.0 by Wr #!d3
    delphi open source rat version 6.0
    2018-05-13 07:54:09下载
    积分:1
  • castle
    *what is this? a small castle adventure room(ran-file) viewer *controls? w for next room, s for previous room q or ESC for exit v toggles between view and walk mode use w , a , s , d in walk mode *i can t see the hole room? resize your window (25-30 needed) *what is castleD.exe? the debug build *build system? visualc 6(sp5), winxp(sp1) *how to build? load the castle.dsw in your visualc6 (or above) and press F9(run) or F5(debug) *other questions? no? - thx Source code features: *no design *no oop *no portability *globals *no nameing convention *defines *bad names *a good "do not" example
    2013-04-15 21:47:07下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载