Skip to main content

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.

Back to lesson: Practice: Inheritance reps