文件名称: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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
