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

Class Dog2

TypeScript/StudyTypeScript/src/class_01.ts:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34/// 类: 类的成员修饰符
35// public
36class Dog2 {
37 constructor(name: string) {
38 this.name = name
39 }
40 public name: string
41 run() {}
42}
43// private 只能类本身调用,不能被类的实例调用,也不能被类的子类调用
44class Dog3 {
45 constructor(name: string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected