Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Inheritance and Interfaces (java) 1. Write an employee class Marketer to accompa

ID: 3571684 • Letter: I

Question

Inheritance and Interfaces (java)

1. Write an employee class Marketer to accompany the other law firm cla sses described in this chapter . Marketers make $50,000 ($10,000 more than general employees), and they have an additional method named advertise that prints "Act now, while supplies last!" Make sure to interact with the superclass as appropriate.

2. Write an employee class Janitor to accompany the other law firm classes . Janitors work twice as many hours (80 hours/week), they make $30,000 ($10,000 less than others), they get half as much vacation (only 5 days), and they have an additional method named clean that prints "Workin' for the man." Make sure to interact with the superclass as appropriate

Explanation / Answer

Please find the required program along with its output. Please see the comments against each line to understand the step.

--------------------------------------------------------

OUTPUT:

Marketer{ make=50000.0, hoursWorked=40, vacation=10 }
Janitor{ make=30000.0, hoursWorked=80, vacation=5 }