All academies
All challenges

Implement Animal → Dog inheritance

Inheritance

solution.ts
easy+50 XP

Create `Animal` with `name` and `speak()` returning `'...'`. `Dog` extends Animal and overrides `speak()` to return `name + ' woofs'`.

Judge

Press Run tests to execute your solution in the sandbox judge.