- Category:
- Java Develop
- Tags:
-
[Text]
- File Size:
- 1kb
- Update:
- 2014-04-16
- Downloads:
- 0 Times
- Uploaded by:
- 张佳
Description: 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
To Search:
File list (Check if you may need any files):
20140414154637.txt