Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SincereCSL/Playgrounds
/ sleep
Method
sleep
TypeScript/StudyTypeScript/src/class_02.ts:29–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
28
class
Monkey extends Animal {
29
sleep() {
30
console.log(
'Monkey sleep'
)
31
}
32
}
33
let
monkey =
new
Monkey()
34
let
animals: Animal[] = [cat,monkey]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected