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