sparse-intern-71089
09/28/2020, 3:22 PMfaint-table-42725
09/28/2020, 5:01 PMOne difference from the prior example is that each derived class that contains a constructor function must callwhich will execute the constructor of the base class. What’s more, before we ever access a property onsuper()
in a constructor body, we have to callthis
. This is an important rule that TypeScript will enforce.super()
millions-furniture-75402
09/28/2020, 8:02 PM