Commit 5a5994ad by BellCodeEditor

save project

parent 062c3dff
Showing with 14 additions and 0 deletions
class animal:
def __init__(self):
self.foot=4
self.ear=2
self.color="white"
class cat(animal):
def __init__(self):
super().__init__()
self.color="black"
sgd=cat()
print(sgd.foot)
print(sgd.ear)
print(sgd.color)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment