12 lines
191 B
Markdown
12 lines
191 B
Markdown
|
---
|
||
|
title: Override Inherited Methods
|
||
|
---
|
||
|
## Override Inherited Methods
|
||
|
|
||
|
# Solution
|
||
|
```javascript
|
||
|
Penguin.prototype.fly = function() {
|
||
|
return "Alas, this is a flightless bird.";
|
||
|
};
|
||
|
```
|