文件名称:20140414154637
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Text]
- 上传时间:
- 2014-04-16
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 张*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现一个类Employee。一个员工都有一个名称(字符串)和工资(双)。提供一个构造函数有两个参数的公共雇员(字符串employeeName,双currentSalary)
和方法
公共字符串getName()
公共双getSalary()
公共无效raiseSalary(双byPercent)
这些方法返回的姓名和工资,以及按一定比例提高员工工资。
使用范例:
员工哈里=新员工(“黑客,哈里”,50000)
harry.raiseSalary(10) //哈利得到了加薪10%
提供该测试所有方法的EmployeeTester类-Implement a class Employee. An employee has a name (a string) and a salary (a double). Provide a constructor with two parameters public Employee(String employeeName, double currentSalary)
and methods
public String getName()
public double getSalary()
public void raiseSalary(double byPercent)
These methods return the name and salary, and raise the employee s salary by a certain percentage.
Sample usage:
Employee harry = new Employee("Hacker, Harry", 50000)
harry.raiseSalary(10) // Harry gets a 10 raise
Supply an EmployeeTester class that tests all methods
和方法
公共字符串getName()
公共双getSalary()
公共无效raiseSalary(双byPercent)
这些方法返回的姓名和工资,以及按一定比例提高员工工资。
使用范例:
员工哈里=新员工(“黑客,哈里”,50000)
harry.raiseSalary(10) //哈利得到了加薪10%
提供该测试所有方法的EmployeeTester类-Implement a class Employee. An employee has a name (a string) and a salary (a double). Provide a constructor with two parameters public Employee(String employeeName, double currentSalary)
and methods
public String getName()
public double getSalary()
public void raiseSalary(double byPercent)
These methods return the name and salary, and raise the employee s salary by a certain percentage.
Sample usage:
Employee harry = new Employee("Hacker, Harry", 50000)
harry.raiseSalary(10) // Harry gets a 10 raise
Supply an EmployeeTester class that tests all methods
(系统自动生成,下载前可以参看下载内容)
下载文件列表
20140414154637.txt