commit
9aee5fc1af
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Rabbit extends Animal {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Usually we don't want to totally replace a parent method, but rather to build on top of it to tweak or extend its functionality. We do something in our method, but call the parent method before/after it or in the process.
|
Usually, however, we don't want to totally replace a parent method, but rather to build on top of it to tweak or extend its functionality. We do something in our method, but call the parent method before/after it or in the process.
|
||||||
|
|
||||||
Classes provide `"super"` keyword for that.
|
Classes provide `"super"` keyword for that.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue