-
在作业1的Employee和EmployeeDemo两个类基础上修改
1,重写Employee类的toString方法,返回Employee类的相关信...
在作业1的Employee和EmployeeDemo两个类基础上修改
1,重写Employee类的toString方法,返回Employee类的相关信息的字符串形式
重写Employee类的equals方法,如果两个Employee实例的名字和所属部门相同,返回true;
并在EmployeeDemo类里面验证上述两个方法
2,定义Clerk、Salesman、Engineer三个类,分别继承自Employee
为Salesman增加一个年销售额属性
为Engineer增加一个年消化人月数属性
3,将下面的描述反映到程序里
普通员工年终奖金分配方案为月薪×2
Salesman:销售额×2%+月薪×1.8
Engineer:年消化人月数×300+月薪×2.5
Clerk:月薪×2.5-1 of the Employee in the operation and EmployeeDemo two classes based on the modification 1, rewrite the Employee class toString method to return to Employee class-related information to rewrite the string form of Employee class equals method, if the two examples of Employee s name and their the same sector, return true and EmployeeDemo the above-mentioned two types of authentication methods inside 2, the definition of Clerk, Salesman, Engineer of three categories, respectively, inherited from the Employee as a Salesman for an additional annual sales for an additional attribute for the Engineer who was the number
- 2023-05-31 23:40:03下载
- 积分:1
-
Thinking in Java 是学习JAVA的经典教材,它不仅仅讲述了WHAT is java,How to use java,还告诉了我们WHY the...
Thinking in Java 是学习JAVA的经典教材,它不仅仅讲述了WHAT is java,How to use java,还告诉了我们WHY the java is。这是该教材的源代码-Thinking in Java Java is a classic study materials, it is not merely about WHAT is the java, How to use java, also told us WHY is the java. This is the teaching of source code
- 2022-04-18 01:51:04下载
- 积分:1
-
modular small Java games
积木小游戏Java -modular small Java games
- 2023-03-26 22:50:03下载
- 积分:1
-
接口实例
接口实例-入门学习-interface examples- learning portal
- 2022-02-07 14:48:31下载
- 积分:1
-
读者与写者之JAVA
读者与写者之JAVA-readers who are supposed to write with JAVA
- 2022-08-17 11:18:26下载
- 积分:1
-
Cart core code demonstration of the use HASHMAP
购物车的核心代码演示了HASHMAP的用法-Cart core code demonstration of the use HASHMAP
- 2022-09-21 15:40:04下载
- 积分:1
-
几行记事本代码 就是一个漂亮的界面 这就是我为什么喜欢jdk
几行记事本代码 就是一个漂亮的界面 这就是我为什么喜欢jdk-few lines of code Notepad is a beautiful interface that is why I like jdk
- 2022-01-29 00:57:23下载
- 积分:1
-
一个简单的JAVA程序,有关计算器的程序.
一个简单的JAVA程序,有关计算器的程序.-simple program of java,about calculator
- 2022-12-26 19:15:02下载
- 积分:1
-
Java reflection on the relevant sample code, detailed the use of the reflection...
有关Java反射的相关示例代码,详细使用的反射机制中的相关方法-Java reflection on the relevant sample code, detailed the use of the reflection of the correlation method
- 2022-08-21 23:23:33下载
- 积分:1
-
组件
javascript编程的组件-components
- 2023-01-07 20:20:02下载
- 积分:1