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

Class Animal

data/python/02_classes.py:1–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Animal:
2 def __init__(self, name):
3 self.name = name
4
5 def speak(self):
6 return f"{self.name} makes a noise."
7
8class Dog(Animal):
9 def __init__(self, name, breed):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected