Update article.md

This commit is contained in:
Itai Leshem 2021-11-02 19:51:17 +02:00 committed by GitHub
parent 15f7acfc2a
commit e431006ebf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?