Update article.md
This commit is contained in:
parent
15f7acfc2a
commit
e431006ebf
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ There's no own constructor in `Rabbit`, so `Animal` constructor is called.
|
|||
|
||||
What's interesting is that in both cases: `new Animal()` and `new Rabbit()`, the `alert` in the line `(*)` shows `animal`.
|
||||
|
||||
**In other words, parent constructor always uses its own field value, not the overridden one.**
|
||||
**In other words, the parent constructor always uses its own field value, not the overridden one.**
|
||||
|
||||
What's odd about it?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue