// Allison Obourn
// CS 142, Spring 2024
// Lecture 10

// Models marketers who get a higher salary than other 
// employees and can advertise.

public class Marketer extends Employee {
   
   // creates a marketer who has worked the passed in number of years
   // at the company
   public Marketer(int years) {
      super(years);
   }

	// outputs advertisment to potential buyers
    public void advertise() {
        System.out.println("Act now, while supplies last!");
    }
    
    // marketers earn 10,000 more than the base employee salary
    public double getSalary() {
        return super.getSalary() + 10000;
    }
}