文件名称:20140414154637
-
所属分类:
- 标签属性:
- 上传时间:2014-04-16
-
文件大小:1.48kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实现一个类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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.