// Allison Obourn
// CS 142, Spring 2024
// Lecture 10

// Models lawyers who can sue, gets 5 more vacation days and
// get a salary of $55000.

public class Lawyer extends Employee {
   
   // creates a lawyer with the passed in number of years at the company
   public Lawyer(int years) {
       super(years);
   }

	// returns the lawyers' salary, increasing by 5000 each year
	public double getSalary() {
		return super.getSalary() + getYears() * 5000.00;      
	}

	// returns the number of paid vacation days lawyers get
	public int getVacationDays() {
		return super.getVacationDays() + 5;
	}

	// returns the lawyers' vacation form
	public String getVacationForm() {
		return "pink";
	}
	
	// sues by printing sue
	public void sue() {
		System.out.println("sue");
	}

}
