Question: / / A class to represent employees in general. public class Employee { public int getHours ( ) { return baseHours; / / 4 0
A class to represent employees in general.
public class Employee
public int getHours
return baseHours; hoursweek
public double getSalary
return baseSalary; $
public int getVacationDays
return baseVacationDays; days
public String getVacationForm
return baseVacationForm; yellow
These are so that test cases can change the base values
and make sure that subclasses also change their values.
Your code that you submit is NOT supposed to directly use, call,
or modify the values below! They are here only to help PracticeIt
successfully test your code. Please ignore them.
private int baseHours ;
private double baseSalary ;
private int baseVacationDays ;
private String baseVacationForm "yellow";
public final void setBaseHoursint hours
baseHours hours;
public final void setBaseSalarydouble salary
baseSalary salary;
public final void setBaseVacationDaysint days
baseVacationDays days;
public final void setBaseVacationFormString form
baseVacationForm form;
Write the class Marketer to accompany the other law firm classes described in this chapter. Marketers make $$ more than general employees and have an additional method called advertise that prints "Act now, while supplies last!" Make sure to interact with the Employee superclass as appropriate.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
