14 lines
220 B
Markdown
14 lines
220 B
Markdown
|
---
|
||
|
title: Override Inherited Methods
|
||
|
localeTitle: 覆盖继承的方法
|
||
|
---
|
||
|
## 覆盖继承的方法
|
||
|
|
||
|
# 解
|
||
|
|
||
|
```javascript
|
||
|
Penguin.prototype.fly = function() {
|
||
|
return "Alas, this is a flightless bird.";
|
||
|
};
|
||
|
|
||
|
```
|