MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / __init__

Method __init__

data/python/02_classes.py:9–11  ·  view source on GitHub ↗
(self, name, breed)

Source from the content-addressed store, hash-verified

7
8class Dog(Animal):
9 def __init__(self, name, breed):
10 super().__init__(name)
11 self.breed = breed
12
13 def speak(self):
14 return f"{self.name} barks!"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected