Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ContractorClass implements EmployeeInterface {
- //Constructor
- public ContractorClass() {
- System.out.println("Constructor : ContractorClass");
- }
- //Implement the interface methods and declare salary
- public void contractorSalary () {
- System.out.println("Contractor salary is : "+empBaseSalary);
- }
- //Implement the interface methods and declare salary
- public void permSalary () {
- Integer totalSalary = empBaseSalary + 50;
- System.out.println("Permanent Employee salary is : "+totalSalary);
- }
- }
Add Comment
Please, Sign In to add comment