Implement a class called Employee

An employee has a name and gets a salary. Every pay period each employee gets an additional amount in bonus.

In your solution, include a constructor that accepts the name and salary of an employee. Provide a mutator method that accepts the bonus amount and adds it to the salary. Provide necessary accessor methods to return the name, the salary before the bonus was applied, the bonus, and the salary after the bonus has been applied.

Don't use plagiarized sources. Get Your Custom Essay on
Implement a class called Employee
Just from $13/Page
Order Essay

Write a test class called TestEmployee to produce output similar to the one below.