Question: In Java, Implement and test a class Employee. An employee has a first name (String), a last name (String) and a salary (double). A method
In Java, Implement and test a class Employee. An employee has a first name (String), a last name (String) and a salary (double). A method raiseSalary and a method printEmployee will be implemented. The method raiseSalary will raise an employee salary by the amount passed to the method as an argument value. assume that instance variables are public.. Sample usage of the class Employee:
Employee john = new Employee(); //initial salary = 30,000 for example
john.raiseSalary(2000); //new value of salary will be 32,000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
