Skip to content

Instantly share code, notes, and snippets.

@YasushiKobayashi
Last active April 3, 2018 09:34
Show Gist options
  • Save YasushiKobayashi/68f04d113a8b9e6232e166159ee43600 to your computer and use it in GitHub Desktop.
Save YasushiKobayashi/68f04d113a8b9e6232e166159ee43600 to your computer and use it in GitHub Desktop.
class Creature():
def __init__(self):
self.level = 2
def status(self):
return self.level
class Warrior(Creature):
def __init__(self):
super().__init__()
def aaaaa(self):
return self.level
print(Warrior().status())
print(Warrior().aaaaa())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment