MCPcopy Index your code
hub / github.com/SincereCSL/Playgrounds / Asian

Class Asian

TypeScript/StudyTypeScript/src/class_interface.ts:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9class Asian implements Human{
10 constructor(name: string) {
11 this.name = name
12 }
13 // 接口只能约束类的公有成员
14 name: string;
15 // private name: string;
16 eat() {}
17 sleep() {}
18}
19
20/// 接口的继承:一个接口可以继承多个接口
21interface Man extends Human {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected