Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package stuff;
- public class Employee {
- public static void main(String[] args) {
- Employee diddle = new Employee();
- diddle.raiseSalary(salary);
- diddle.getSalary(salary);
- System.out.println(salary);
- }
- public static double salary;
- public double amount;
- public void salary(double salary) {
- this.salary = 5000;
- }
- public double getSalary(double salary) {
- return this.salary;
- }
- public void raiseSalary(double salary) {
- this.salary = amount *.10;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement