Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SincereCSL/Playgrounds
/ constructor
Method
constructor
TypeScript/StudyTypeScript/src/class_interface.ts:10–12 ·
view source on GitHub ↗
(name: string)
Source
from the content-addressed store, hash-verified
8
9
class
Asian implements Human{
10
constructor(name: string) {
11
this.name = name
12
}
13
// 接口只能约束类的公有成员
14
name: string;
15
// private name: string;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected