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

Method constructor

TypeScript/StudyTypeScript/src/class_02.ts:12–15  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

10
11class Cat extends Animal{
12 constructor(name: string) {
13 super()
14 this.name = name
15 }
16 name: string
17 run() {}
18 sleep() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected