Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BruceEckel/OnJava8-Examples
/ command
Function
command
staticchecking/PetSpeak.py:18–19 ·
view source on GitHub ↗
(pet)
Source
from the content-addressed store, hash-verified
16
print(
"woof!"
)
17
18
def
command(pet):
19
pet.speak()
20
21
pets = [ Cat(), Dog() ]
# (1)
22
for
pet in pets:
# (2)
Callers
1
PetSpeak.py
File · 0.70
Calls
1
speak
Method · 0.65
Tested by
no test coverage detected