override class fields
Last updated
Last updated
JS ⟩ types ⟩ class ⟩ inheritance ⟩ override class fields
⭐️ class fields initialization:
The class fields are initialized:
base class: before constructor()
derived class: immediately after super
()
👉 參閱: derived class init 看完整的「初始化」過程。