Add Methods After Inheritance The task is not very clear

@ovirex I am inclined to agree other than the fact that the above comment appears below the Dog function, which would mean the only place to add the bark method would be the Dog’s prototype.

That being said, I do think the wording could be made clearer with the following change to the instructions:

and the following change to the third test:

Add all necessary code so the Dog object inherits from Animal and the Dog's prototype constructor is set to Dog. Then add a bark() method to Dog’s prototype so that beagle can both eat() and bark() . The bark() method should print “Woof!” to the console.

Dog should have a bark method that is a prototype property.

What do you think?

1 Like