Update article.md

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

View file

@ -360,7 +360,7 @@ And that's what we naturally expect. When the parent constructor is called in th
...But for class fields it's not so. As said, the parent constructor always uses the parent field.
Why is there the difference?
Why is there a difference?
Well, the reason is in the field initialization order. The class field is initialized:
- Before constructor for the base class (that doesn't extend anything),