Let's use our knowledge of Object Methods to write a piece of code that calculates an employee's salary.