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

Class Dog

data/python/02_classes.py:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 return f"{self.name} makes a noise."
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!"
15
16dog = Dog("Rex", "Shepherd")
17print(dog.speak())

Callers 1

02_classes.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected