Guest User

Untitled

a guest
Jul 17th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public class ContractorClass implements EmployeeInterface {
  2.  
  3. //Constructor
  4. public ContractorClass() {
  5. System.out.println("Constructor : ContractorClass");
  6. }
  7.  
  8. //Implement the interface methods and declare salary
  9. public void contractorSalary () {
  10. System.out.println("Contractor salary is : "+empBaseSalary);
  11. }
  12.  
  13. //Implement the interface methods and declare salary
  14. public void permSalary () {
  15. Integer totalSalary = empBaseSalary + 50;
  16. System.out.println("Permanent Employee salary is : "+totalSalary);
  17. }
  18.  
  19. }
Add Comment
Please, Sign In to add comment