Typo
"Imediately" instead of "Immediately"
This commit is contained in:
parent
2f4747be58
commit
2bf5addf47
1 changed files with 1 additions and 1 deletions
|
@ -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)`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue