This repository was archived by the owner on Oct 17, 2025. It is now read-only.
Commit 39dc22b
* Disambiguate `super` from `this` inheritance
If the child class inherits a function, calling it from `super` behaves identically to calling it from `this`. But by overriding the inherited definition, the example demonstrates that `super` bypasses the child’s definition and goes to the parent’s instead.
* explicitly call out local definition being bypassed
Co-authored-by: Joshua Chen <[email protected]>
---------
Co-authored-by: Joshua Chen <[email protected]>
1 parent 0dfc9ae commit 39dc22b
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
0 commit comments