Practice · 4 of 5
Which method runs?
CHALLENGE
Difficulty: beginner+25 XP
Complete both subclasses' sound() overrides, then chorus(a, b): each animal's own sound separated by a single space, a's first. The dispatch must be dynamic — no instanceof.
Press Submit to check your solution.
Back to lesson: Practice: Inheritance reps