| 9 | } |
| 10 | |
| 11 | class Dog extends Animal { |
| 12 | constructor(name, breed) { |
| 13 | super(name); |
| 14 | this.breed = breed; |
| 15 | } |
| 16 | |
| 17 | speak() { |
| 18 | console.log(`${this.name} barks!`); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | const dog = new Dog("Rex", "Shepherd"); |
| 23 | dog.speak(); |
nothing calls this directly
no outgoing calls
no test coverage detected