MCPcopy Create free account
hub / github.com/SincereCSL/Playgrounds / constructor

Method constructor

TypeScript/StudyTypeScript/src/class_01.ts:56–60  ·  view source on GitHub ↗
(name: string, color: string)

Source from the content-addressed store, hash-verified

54
55class TestDog3 extends Dog3 {
56 constructor(name: string, color: string){
57 super(name)
58 this.color = color
59 // this.pri() // 不能被子类调用
60 }
61 color: string
62}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected