Last active
April 3, 2018 09:34
-
-
Save YasushiKobayashi/68f04d113a8b9e6232e166159ee43600 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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