Merge pull request #2102 from pushpend3r/patch-2

Typo
This commit is contained in:
Ilya Kantor 2020-09-05 16:50:15 +03:00 committed by GitHub
commit d1e4981505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -364,7 +364,7 @@ Why is there the 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),
- Imediately after `super()` for the derived class.
- Immediately after `super()` for the derived class.
In our case, `Rabbit` is the derived class. There's no `constructor()` in it. As said previously, that's the same as if there was an empty constructor with only `super(...args)`.