-
Employee
创建四个类,分别为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.)
- 2013-11-27 11:43:06下载
- 积分:1
-
Practical_Quiz_4
Practical_Quiz_4 ssd1 very understandable
- 2014-12-13 17:08:02下载
- 积分:1
-
Socket_client
java教程中的一段源码,其功能是,用socket建立通讯实例客户端。(java tutorial in the section of source code and its function is, and set up communication socket client example.)
- 2009-04-08 19:56:48下载
- 积分:1
-
Hotel
Java project which describes Hotel managment system.
- 2016-05-16 05:17:03下载
- 积分:1
-
SelectionModelDemo
说明: 表格选择模式,当用户对表格做数据域位的选取时会产生ListSelectionListener事件(Table selection mode, when users place on the table to do the selection of data fields will produce ListSelectionListener events)
- 2010-04-07 10:44:39下载
- 积分:1
-
sword-point-to-offer
几个github常用的代码,附带head first java 初步学习教材(Several commonly used code github, as well as with the primary learning java foreign translation of textbooks)
- 2017-12-02 10:20:48下载
- 积分:1
-
java-cod
my java codes to all
- 2012-10-22 23:21:21下载
- 积分:1
-
tomcat8
tomca8.5的源代码,包括connector连接器和catalina容器(tomca8.5 source code)
- 2020-06-17 10:00:02下载
- 积分:1
-
ownerElement02
this is set by subclasses, but don t make it public.
- 2014-02-25 11:22:56下载
- 积分:1
-
commons-math3-3.5-bin
Commom math library java
- 2015-05-03 02:51:51下载
- 积分:1