It's possible to override an inherited method. It's done the same way - by adding a method to <code>ChildObject.prototype</code> using the same method name as the one to override.
Here's an example of <code>Bird</code> overriding the <code>eat()</code> method inherited from <code>Animal</code>:
<blockquote>function Animal() { }<br>Animal.prototype.eat = function() {<br> return "nom nom nom";<br>};<br>function Bird() { }<br><br>// Inherit all methods from Animal<br>Bird.prototype = Object.create(Animal.prototype);<br><br>// Bird.eat() overrides Animal.eat()<br>Bird.prototype.eat = function() {<br> return "peck peck peck";<br>};</blockquote>
If you have an instance <code>let duck = new Bird();</code> and you call <code>duck.eat()</code>, this is how JavaScript looks for the method on <code>duck’s</code><code>prototype</code> chain:
1. duck => Is eat() defined here? No.
2. Bird => Is eat() defined here? => Yes. Execute it and stop searching.
3. Animal => eat() is also defined, but JavaScript stopped searching before reaching this level.
4. Object => JavaScript stopped searching before reaching this level.
</section>
## Instructions
<sectionid='instructions'>
Override the <code>fly()</code> method for <code>Penguin</code> so that it returns "Alas, this is a flightless bird."
</section>
## Tests
<sectionid='tests'>
```yml
- text: '<code>penguin.fly()</code> should return the string "Alas, this is a flightless bird."'
testString: 'assert(penguin.fly() === "Alas, this is a flightless bird.", ''<code>penguin.fly()</code> should return the string "Alas, this is a flightless bird."'');'