(name: string)
| 1 | /// 类 :继承和成员修饰符 |
| 2 | class Dog { |
| 3 | constructor(name: string) { |
| 4 | this.name = name |
| 5 | } |
| 6 | // protected constructor(name: string) { //这个类不能被实例化,只能被继承 |
| 7 | // this.name = name |
| 8 | // } |
nothing calls this directly
no outgoing calls
no test coverage detected