override class fields
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 ็ๅฎๆด็ใๅๅงๅใ้็จใ
Last updated
Was this helpful?