Constructing an EmployeeConstructing an EmployeeCall mailCheck usingSalary reference --Within mailCheck of SalaryclassMailing check to MohdMohtashimwith salary 3600.0Call mailCheck usingEmployee reference--Within mailCheck of SalaryclassMailing check to JohnAdamswith salary 2400.