Skip to main content

Practice · 2 of 5

Manager pay

CHALLENGE
Difficulty: beginner+25 XP

Complete Manager extends Employee: constructor chains up with super(name, base) and stores bonus; pay() overrides to base + bonus, reading the base through the inherited accessor getBase().

Back to lesson: Practice: Inheritance reps