Loading question...
class Animal { constructor(name) { this.name = name; } speak() { return this.name + " makes a sound"; } }class Dog extends Animal { constructor(name, breed) { super(name); this.breed = breed; } speak() { return this.name + " barks"; } }