Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SincereCSL/Playgrounds
/
Class
TypeScript/StudyTypeScript/src/class_02.ts:11–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
// let animal = new Animal() // 不能够实例化,只能被继承
10
11
class
Cat extends Animal{
12
constructor(name: string) {
13
super()
14
this.name = name
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected